This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug inline-asm/65898] GCC puts auto generated code between two asm volatile(".intel_syntax"); and asm volatile(".att_syntax"); globally syntaxed rather than not put or change it's syntax
- From: "sstsoft at wp dot pl" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 26 Apr 2015 17:26:10 +0000
- Subject: [Bug inline-asm/65898] GCC puts auto generated code between two asm volatile(".intel_syntax"); and asm volatile(".att_syntax"); globally syntaxed rather than not put or change it's syntax
- Auto-submitted: auto-generated
- References: <bug-65898-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65898
--- Comment #1 from stanley <sstsoft at wp dot pl> ---
You could see another bug there "mov eax,%eax" -> %eax is generated from named
value [val] "g" (val). I see there is my bug, to do such code without clobber
"eax" so GCC put's optimized local value into my asm inline() and almost nop ->
mov eax,eax produced.. i can fix that, but can someone fix bugs in GCC?