This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
i386 dwarf2 tweek
- To: gcc-patches at gcc dot gnu dot org
- Subject: i386 dwarf2 tweek
- From: Richard Henderson <rth at redhat dot com>
- Date: Tue, 21 Nov 2000 11:07:21 -0800
I found I needed to simplify @GOT references (in addition to the
existing @GOTOFF simplifications) in order to build libstdc++-v3
with dwarf2 debugging enabled.
r~
* config/i386/i386.c (i386_simplify_dwarf_addr): Simplify @GOT
references as well.
Index: config/i386/i386.c
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/i386/i386.c,v
retrieving revision 1.190
diff -c -p -d -r1.190 i386.c
*** i386.c 2000/11/17 17:31:09 1.190
--- i386.c 2000/11/21 19:03:39
*************** i386_simplify_dwarf_addr (orig_x)
*** 3068,3080 ****
x = XEXP (XEXP (x, 1), 0);
if (GET_CODE (x) == UNSPEC
! && XINT (x, 1) == 7)
return XVECEXP (x, 0, 0);
if (GET_CODE (x) == PLUS
&& GET_CODE (XEXP (x, 0)) == UNSPEC
&& GET_CODE (XEXP (x, 1)) == CONST_INT
! && XINT (XEXP (x, 0), 1) == 7)
return gen_rtx_PLUS (VOIDmode, XVECEXP (XEXP (x, 0), 0, 0), XEXP (x, 1));
return orig_x;
--- 3068,3082 ----
x = XEXP (XEXP (x, 1), 0);
if (GET_CODE (x) == UNSPEC
! && (XINT (x, 1) == 6
! || XINT (x, 1) == 7))
return XVECEXP (x, 0, 0);
if (GET_CODE (x) == PLUS
&& GET_CODE (XEXP (x, 0)) == UNSPEC
&& GET_CODE (XEXP (x, 1)) == CONST_INT
! && (XINT (XEXP (x, 0), 1) == 6
! || XINT (XEXP (x, 0), 1) == 7))
return gen_rtx_PLUS (VOIDmode, XVECEXP (XEXP (x, 0), 0, 0), XEXP (x, 1));
return orig_x;