[Bug inline-asm/43998] inline assembler: can't set clobbering for input register
socketpair at gmail dot com
gcc-bugzilla@gcc.gnu.org
Thu May 6 15:04:00 GMT 2010
------- Comment #9 from socketpair at gmail dot com 2010-05-06 15:03 -------
> Not if you make the output unused by not using it.
I do not understand why gcc distinguish between 'specifying register as output'
and 'specifying as clobbering'.
I always considered, that 'clobber list' specify list of items which may be
changed *AFTER* the end of instruction(s). So I do not understand why adding
eax in clobber list will break compilation.
I found some posts where people create size_t dummy; and specify this variable
as output. insted of just specifying this register in clobber-list.
Why not to fix bug I have reported? Maybe convert to feature?
--
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