Vladimir Makarov <vmaka...@redhat.com> writes: > The following patch fixes > > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64317 > > The patch was successfully bootstrapped on x86-64 and ppc64 and > tested on x86-64. > > Committed as rev.220060.
Sorry for picking on this again, because I realise it isn't your fault, but it seems unfortunate that the the i386-local macro REAL_PIC_OFFSET_TABLE_REGNUM is leaking into target-independent code like this. c.f. https://gcc.gnu.org/ml/gcc-patches/2014-11/msg03365.html IMO either REAL_PIC_OFFSET_TABLE_REGNUM should become part of the target interface, documented in tm.texi and probably with some of the i386.c handling moved to generic code, or we should abstract away the problem in LRA somehow, e.g. by a new target hook. Thanks, Richard