This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Oust HPPA PIC_OFFSET_TABLE_REGNUM_SAVED
- To: Jeffrey A Law <law at redhat dot com>
- Subject: Re: Oust HPPA PIC_OFFSET_TABLE_REGNUM_SAVED
- From: Alan Modra <alan at linuxcare dot com dot au>
- Date: Tue, 16 Jan 2001 10:07:45 +1100 (EST)
- cc: John David Anglin <dave at hiauly1 dot hia dot nrc dot ca>, gcc-patches at gcc dot gnu dot org, parisc-linux at puffin dot external dot hp dot com
On Mon, 15 Jan 2001, Jeffrey A Law wrote:
> First, if an ASM trashes a fixed register, then it is the ASM's responsibility
> to restore it. So that part of this patch is wrong.
OK, that's fair enough.
> The rest of it looks pretty reasonable and can be installed.
There is possibly a small problem. The test at the end of
hppa_expand_prologue:
if (flag_pic && HARD_REGISTER_P (PIC_OFFSET_TABLE_SAVE_RTX))
might be wrong. I tested HARD_REGISTER_P because we don't want to emit
the instruction as part of the prologue if PIC_OFFSET_TABLE_SAVE_RTX is
dead. What happens if register pressure causes the pseudo to be allocated
a stack slot?
Alan Modra
--
Linuxcare. Support for the Revolution.