inline assembler: can't set clobbering for input register
Cedric Roux
cedric.roux@acri-st.fr
Thu May 6 12:53:00 GMT 2010
ÐаÑк ÐоÑенбеÑг wrote:
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43998
>
> Please answer to my last question (comment #5) in this bug report. Thanks.
> I consider this is a bug in gcc inline assembler.
>
that's funny, I had the exact same problem than yours.
I finally ended up using unused variables, like everyone
else.
I agree with you that it's a bit ugly, but I guess
we have to live with that. (The asm syntax is not
particularly sexy either.)
By the way I suspect the compiler to do some funky
optimizations afterwards so apart from ugliness I
doubt we lose something.
Welcome in reality! :-)
More information about the Gcc-help
mailing list