x86-64 medium model fix
Jan Hubicka
jh@suse.cz
Mon Aug 1 17:50:00 GMT 2005
> On Mon, Aug 01, 2005 at 11:57:25AM +0200, Jan Hubicka wrote:
> > * i386.c (legitimate_pic_address_disp_p): GOTOFF is not valid address
> > in MEDIUM pic because it is 64bit.
> > * (legitimate_address_p): Likewise.
>
> Testing *just* TARGET_64BIT? I think not.
I think it is safe. On 64bit we either do small model PIC and don't use
those relocations (and do IP relative) or medium/large model where they
are 64bit.
>
> > * i386.md (movdi*): Choose imov instead of lea for 64bit PIC operands.
> > * predicates.md (pic_64bit_operand): New predicate.
>
> No, what you want is pic_32bit_operand, and make that the positive test
> that's used for the lea type.
OK, that would work too..
Honza
>
>
> r~
More information about the Gcc-patches
mailing list