This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/25572] ppc64 -mminimal-toc trashes r30
- From: "amodra at bigpond dot net dot au" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Dec 2005 04:52:59 -0000
- Subject: [Bug target/25572] ppc64 -mminimal-toc trashes r30
- References: <bug-25572-8090@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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