[Bug target/25572] ppc64 -mminimal-toc trashes r30
amodra at bigpond dot net dot au
gcc-bugzilla@gcc.gnu.org
Wed Dec 28 04:53:00 GMT 2005
------- Comment #3 from amodra at bigpond dot net dot au 2005-12-28 04:52 -------
Adding
if (no_new_pseudos)
regs_ever_live[TOC_REGISTER] = 1;
to rs6000.c:create_TOC_reference fixes this problem. There seems to be
precedent for such chicanery: eg. rs6000_got_register and a number of places in
i386.c setting regs_ever_live[PIC_OFFSET_TABLE_REGNUM].
--
amodra at bigpond dot net dot au changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dje at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25572
More information about the Gcc-bugs
mailing list