This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc register allocation error when reloading an asm


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]