This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/28325] -fno-delayed-branch does not seem to work with the MIPS branch instructions
- From: "ian at airs dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 10 Jul 2006 16:27:14 -0000
- Subject: [Bug middle-end/28325] -fno-delayed-branch does not seem to work with the MIPS branch instructions
- References: <bug-28325-12925@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from ian at airs dot com 2006-07-10 16:27 -------
This is not a bug in the compiler. The ".set reorder" directive tells the
assembler that it should reorder instructions into branch delay slots when
possible. The compiler just copies the ".set reorder" directly from the asm
statement. Both the compiler and the assembler are acting as expected.
You should rewrite your asm statement to not use .set reorder. Do this
instead:
.set push
.set noreorder
...
.set pop
--
ian at airs dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28325