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]

i386 dwarf2 tweek


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;

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