public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/36232]  New: Optimizer removes condition check to terminate loop
@ 2008-05-13 19:47 nick dot spence at freescale dot com
  2008-05-13 19:51 ` [Bug c/36232] " nick dot spence at freescale dot com
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: nick dot spence at freescale dot com @ 2008-05-13 19:47 UTC (permalink / raw)
  To: gcc-bugs

This section of code is used in a bootloader to test DRAM.

It loops over the DRAM performing various operations of reads and writes.

When optimization (O2 or Os) is switched on the second loop in this example no
longer terminates, but continues indefinitely because the loop condition has
been removed from the optimized code


-- 
           Summary: Optimizer removes condition check to terminate loop
           Product: gcc
           Version: 4.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: nick dot spence at freescale dot com
 GCC build triplet: gcc version 4.1.2 20070626 (Red Hat 4.1.2-13)
  GCC host triplet: i386-redhat-linux
GCC target triplet: i386-redhat-linux


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36232


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-05-13 20:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-05-13 19:47 [Bug c/36232] New: Optimizer removes condition check to terminate loop nick dot spence at freescale dot com
2008-05-13 19:51 ` [Bug c/36232] " nick dot spence at freescale dot com
2008-05-13 19:53 ` nick dot spence at freescale dot com
2008-05-13 19:56 ` nick dot spence at freescale dot com
2008-05-13 20:02 ` pinskia at gcc dot gnu dot org
2008-05-13 20:03 ` pinskia at gcc dot gnu dot org
2008-05-13 20:42 ` nick dot spence at freescale dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).