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
This commit is contained in:
Jan Hubicka 2004-09-18 09:29:06 +02:00 committed by Jan Hubicka
parent f4966f8cab
commit b8771ace10
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-09-18 Jan Hubicka <jh@suse.cz>
* i386.c (legitimize_pic_address): Fix splitting of PLUS with
huge offset.
2004-09-18 Kaz Kojima <kkojima@gcc.gnu.org>
* config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Remove.

View File

@ -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