[PATCH] -fpic problems on PPC, a different approach
Tue Jun 8 00:52:00 GMT 1999
On Mon, Jun 07, 1999 at 07:26:50PM -0600, Jeffrey A Law wrote:
> Keep track of whether or not you ever reference the pic register. If you
> do, then you'll need to load it up at appropriate times. Else you ignore
> it completely.
You don't actually have to explicitly track this. Since there
are no hidden uses of the pic register in the ppc port, you can
simply check regs_ever_live[PIC_OFFSET_TABLE_REGNUM] when you
generate the function's prologue.
Ignore FINALIZE_PIC -- it is a red herring.
Remove all references to GOT_TOC_REGNUM. Don't ever write to
pic_offset_table_rtx; don't save and restore it in
The movsi_got patterns can be streamlined; movsi_got_internal_mem
can go away entirely.
More information about the Gcc-patches