This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug inline-asm/87984] [7/8/9 Regression] wrong code for local reg var input to asm
- From: "amonakov at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 17 Nov 2018 09:02:43 +0000
- Subject: [Bug inline-asm/87984] [7/8/9 Regression] wrong code for local reg var input to asm
- Auto-submitted: auto-generated
- References: <bug-87984-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87984
Alexander Monakov <amonakov at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|INVALID |---
--- Comment #11 from Alexander Monakov <amonakov at gcc dot gnu.org> ---
No, you're mistaken. The clobber is outside of the live range of 'a'. There's
no clobber where 'a' is live:
register int a asm("eax");
a = 1;
asm("add %1, %0" : "+r"(o) : "r"(a));
Such situation could appear as a result of inlining, for example.
Do you realize that LLVM is implementing sane semantics promised by GCC's own
documentation without inventing new syntax for inline asm operands?