[Bug inline-asm/43998] inline assembler: can't set clobbering for input register
socketpair at gmail dot com
gcc-bugzilla@gcc.gnu.org
Fri May 14 06:31:00 GMT 2010
------- Comment #11 from socketpair at gmail dot com 2010-05-14 06:31 -------
Suppose this:
volatile int x;
asm("something"::"a" (1))
x=1;
the compiler may think that "something" do not modify eax. So next assignment
may use eax ( mov eax, x ). So, "it does not make sense to have it as a
clobber" is not correct. does not it ?
-----------------
And the second, "Because the way the constraints are implemented inside GCC, an
input constraint cannot overlap with a clobber." - It definitely the bug.
--
socketpair at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |UNCONFIRMED
Resolution|INVALID |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43998
More information about the Gcc-bugs
mailing list