From: Jan Hubicka Date: Sat, 18 Sep 2004 07:29:06 +0000 (+0200) Subject: i386.c (legitimize_pic_address): Fix splitting of PLUS with huge offset. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b8771ace10537344957eaf0351793239ba5b2ee3;p=gcc.git i386.c (legitimize_pic_address): Fix splitting of PLUS with huge offset. * i386.c (legitimize_pic_address): Fix splitting of PLUS with huge offset. From-SVN: r87697 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 06a6e53a141..9fa0b9b7ced 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2004-09-18 Jan Hubicka + + * i386.c (legitimize_pic_address): Fix splitting of PLUS with + huge offset. + 2004-09-18 Kaz Kojima * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Remove. diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 57e785d003b..09db92e7971 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -5405,7 +5405,7 @@ legitimize_pic_address (rtx orig, rtx reg) { if (INTVAL (op1) < -16*1024*1024 || INTVAL (op1) >= 16*1024*1024) - new = gen_rtx_PLUS (Pmode, op0, force_reg (Pmode, op1)); + new = gen_rtx_PLUS (Pmode, force_reg (Pmode, op0), op1); } } else