gcc register allocation error when reloading an asm

Richard Henderson rth@redhat.com
Wed Nov 23 06:39:00 GMT 2011


On 11/22/2011 12:11 PM, Bodart, Mitch L wrote:
> Unfortunately the source change suggestion didn't work, but that's OK because I can make the asm work by eliminating some register pressure.

Hmm.  Well, if you keep that "memory" clobber there, you don't actually
need to represent the RW memory as an output at all -- we're indicating
that all memory is changed.

Try just "=r"(out) : "m"(*ptr) and see if that works.

Otherwise... well, you've got your register pressure reduction.


r~



More information about the Gcc mailing list