This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: x86-64 medium model fix
- From: Richard Henderson <rth at redhat dot com>
- To: Jan Hubicka <jh at suse dot cz>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 1 Aug 2005 10:20:15 -0700
- Subject: Re: x86-64 medium model fix
- References: <20050801095725.GG14570@kam.mff.cuni.cz>
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.
> * 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.
r~