This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]