[Bug target/16562] [ H8300 Target] Wrong code with -O2, -O3 optimizations

kazu at cs dot umass dot edu gcc-bugzilla@gcc.gnu.org
Mon Aug 16 07:08:00 GMT 2004


------- Additional Comments From kazu at cs dot umass dot edu  2004-08-16 07:07 -------
I doubt there is anything in the C language specification that
prohibits the compiler from removing or shortening these empty loops.

To guarantee the presevation of the loop iterations, you need to use
asm ("nop") as you have demonstrated already.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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



More information about the Gcc-bugs mailing list