This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/16562] [ H8300 Target] Wrong code with -O2, -O3 optimizations
- From: "kazu at cs dot umass dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Aug 2004 07:08:05 -0000
- Subject: [Bug target/16562] [ H8300 Target] Wrong code with -O2, -O3 optimizations
- References: <20040715094601.16562.asgarij@kpitcummins.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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