[Bug c/85185] Wider-than-expected load for struct member used as operand of inline-asm with memory clobber at -Og
segher at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Sep 14 19:34:04 GMT 2021
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85185
--- Comment #12 from Segher Boessenkool <segher at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #11)
> as mentioned in another bug, this is more of a documentation issue and the
> internal details on how inline-asm works.
Yup. I suggest we advice to always use a register-size variable for an
"r" operand: so not smaller, and not any random expression, but a simple
variable.
Are there situations where this is a limitation?
More information about the Gcc-bugs
mailing list