This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: x86-64 medium model fix


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~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]