From 4859dd36360c4865fcf0ae284735ee7af23bdd3d Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Mon, 14 Aug 2000 18:01:37 -0700 Subject: i386.c (legitimize_pic_address): Use Pmode for all CONSTs. * config/i386/i386.c (legitimize_pic_address): Use Pmode for all CONSTs. From-SVN: r35691 --- gcc/ChangeLog | 5 +++++ gcc/config/i386/i386.c | 14 +++++++------- 2 files changed, 12 insertions(+), 7 deletions(-) (limited to 'gcc') diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 854912c..6d7734c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2000-08-14 Richard Henderson + * config/i386/i386.c (legitimize_pic_address): Use Pmode + for all CONSTs. + +2000-08-14 Richard Henderson + * configure.in (ia64-*): Set float_format for i386 long double. * real.c (GET_REAL): Treat 128-bit INTEL_EXTENDED_IEEE_FORMAT diff --git a/gcc/config/i386/i386.c b/gcc/config/i386/i386.c index 3a2603e..4898538 100644 --- a/gcc/config/i386/i386.c +++ b/gcc/config/i386/i386.c @@ -2589,8 +2589,8 @@ legitimize_pic_address (orig, reg) base address (@GOTOFF). */ current_function_uses_pic_offset_table = 1; - new = gen_rtx_UNSPEC (VOIDmode, gen_rtvec (1, addr), 7); - new = gen_rtx_CONST (VOIDmode, new); + new = gen_rtx_UNSPEC (Pmode, gen_rtvec (1, addr), 7); + new = gen_rtx_CONST (Pmode, new); new = gen_rtx_PLUS (Pmode, pic_offset_table_rtx, new); if (reg != 0) @@ -2605,8 +2605,8 @@ legitimize_pic_address (orig, reg) Global Offset Table (@GOT). */ current_function_uses_pic_offset_table = 1; - new = gen_rtx_UNSPEC (VOIDmode, gen_rtvec (1, addr), 6); - new = gen_rtx_CONST (VOIDmode, new); + new = gen_rtx_UNSPEC (Pmode, gen_rtvec (1, addr), 6); + new = gen_rtx_CONST (Pmode, new); new = gen_rtx_PLUS (Pmode, pic_offset_table_rtx, new); new = gen_rtx_MEM (Pmode, new); RTX_UNCHANGING_P (new) = 1; @@ -2641,9 +2641,9 @@ legitimize_pic_address (orig, reg) && GET_CODE (op1) == CONST_INT) { current_function_uses_pic_offset_table = 1; - new = gen_rtx_UNSPEC (VOIDmode, gen_rtvec (1, op0), 7); - new = gen_rtx_PLUS (VOIDmode, new, op1); - new = gen_rtx_CONST (VOIDmode, new); + new = gen_rtx_UNSPEC (Pmode, gen_rtvec (1, op0), 7); + new = gen_rtx_PLUS (Pmode, new, op1); + new = gen_rtx_CONST (Pmode, new); new = gen_rtx_PLUS (Pmode, pic_offset_table_rtx, new); if (reg != 0) -- cgit v1.1