This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix gcc.dg/20020312-2.c on powerpc-linux-gnu
- From: David Edelsohn <dje at watson dot ibm dot com>
- To: Franz Sirl <Franz dot Sirl-kernel at lauterbach dot com>
- Cc: gcc-patches at gcc dot gnu dot org, Richard Henderson <rth at redhat dot com>, Stan Shebs <shebs at apple dot com>
- Date: Sat, 30 Mar 2002 18:03:44 -0500
- Subject: Re: [PATCH] Fix gcc.dg/20020312-2.c on powerpc-linux-gnu
* config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
(PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
!flag_pic.
(CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
* config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
of PIC_OFFSET_TABLE_REGNUM thruout.
* config/rs6000/rs6000.md: Likewise.
* config/rs6000/darwin.h: Likewise.
Global replacement of PIC_OFFSET_TABLE_REGNUM with
RS6000_PIC_OFFSET_TABLE_REGNUM in the rs6000 files to allow for the
PIC_OFFSET_TABLE_REGNUM fix is fine with me.
Thanks, David