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]

Re: SMALL_REGISTER_CLASSES



> But I would recommend first looking into other solutions first, mentioning
> regs explicitly in RTL is a bad thing

Unfortunately, the user can mention regs explicitly in 'asm'
statements, too.  This causes problems on rs6000, where there are
no small register classes mentioned in the RTL, but users can write
things like

asm ("" : : : "cr0");

and get 'forbidden register spilled' if a pseudo (in this case, most
likely derived from a "CC" in the RTL) needs a register of that class.

--
Geoff Keating <Geoff.Keating@anu.edu.au>


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