Re: [Committed] S/390: Handle PLT/PLTOFF in delegitimize_address

2011-03-22 Thread Andreas Krebbel
> This surprises me, you accept there arbitrary > offsets and throw them away. If it behaves like i?86 GOTOFF, > then I'd expect you want to remember the offset and > > > + > > if (GET_CODE (y) == UNSPEC > > ! && (XINT (y, 1) == UNSPEC_GOTOFF > > ! || XINT (y, 1) == UNSPEC_PL

Re: [Committed] S/390: Handle PLT/PLTOFF in delegitimize_address

2011-03-22 Thread Jakub Jelinek
On Tue, Mar 22, 2011 at 08:30:47AM +0100, Andreas Krebbel wrote: > Index: gcc/config/s390/s390.c > === > *** gcc/config/s390/s390.c.orig > --- gcc/config/s390/s390.c > *** s390_delegitimize_address (rtx orig_x) > *** 5019,5

[Committed] S/390: Handle PLT/PLTOFF in delegitimize_address

2011-03-22 Thread Andreas Krebbel
Hi, the attached patch adds handling for PLT and PLTOFF unspecs for S/390. With the patch also constant addends to PLTOFF and GOTOFF are accepted. This fixes Java bootstrap for s390x. Applied to mainline. Bye, -Andreas- 2011-03-22 Andreas Krebbel * config/s390/s390.c (s390_delegit