This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/21535] Empty inline assembly cause the generated code to be wrong?
- From: "rsandifo at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 May 2005 13:07:21 -0000
- Subject: [Bug target/21535] Empty inline assembly cause the generated code to be wrong?
- References: <20050512175612.21535.yhlin@sdesigns.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From rsandifo at gcc dot gnu dot org 2005-05-16 13:07 -------
You say that p.s doesn't work. Could you explain why? The code appears
to be functionally identical to q.s, the only difference being that p.s
allows the assembler to reorder the code and q.s does not.
The effect of an asm is deliberate. gcc normally tries to put the
whole function inside a ".set noreorder/.set nomacro" block.
But it isn't safe to put asms in such a block because they might
use assembler macros.
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |rsandifo at gcc dot gnu dot
| |org
Status|UNCONFIRMED |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21535