dwarf2out.c (mem_loc_descriptor): Use XEXP, not SUBREG_REG, with auto-inc codes.
authorRichard Henderson <rth@redhat.com>
Mon, 1 Aug 2005 21:10:26 +0000 (14:10 -0700)
committerRichard Henderson <rth@gcc.gnu.org>
Mon, 1 Aug 2005 21:10:26 +0000 (14:10 -0700)
        * dwarf2out.c (mem_loc_descriptor): Use XEXP, not SUBREG_REG,
        with auto-inc codes.

From-SVN: r102640

gcc/ChangeLog
gcc/dwarf2out.c

index bb1325e..afd4b12 100644 (file)
@@ -1,5 +1,8 @@
 2005-08-01  Richard Henderson  <rth@redhat.com>
 
+       * dwarf2out.c (mem_loc_descriptor): Use XEXP, not SUBREG_REG,
+       with auto-inc codes.
+
        * config/alpha/predicates.md (and_operand): Test mode of CONST_DOUBLE.
 
 2005-08-01  Jan Hubicka  <jh@suse.cz>
index be2f557..d27e5fd 100644 (file)
@@ -8640,7 +8640,7 @@ mem_loc_descriptor (rtx rtl, enum machine_mode mode, bool can_use_fbreg)
         up an entire register.  For now, just assume that it is
         legitimate to make the Dwarf info refer to the whole register which
         contains the given subreg.  */
-      rtl = SUBREG_REG (rtl);
+      rtl = XEXP (rtl, 0);
 
       /* ... fall through ...  */