]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
dwarf2out.c (loc_descriptor): For SUBREG pass SUBREG_REG's mode as second argument...
authorJakub Jelinek <jakub@redhat.com>
Wed, 19 Oct 2011 08:43:09 +0000 (10:43 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 19 Oct 2011 08:43:09 +0000 (10:43 +0200)
* dwarf2out.c (loc_descriptor): For SUBREG pass SUBREG_REG's mode as
second argument instead of mode.

From-SVN: r180178

gcc/ChangeLog
gcc/dwarf2out.c

index d8f5a8292d0df4eb74e31889b50d6b77bfd99cda..5d28f99b097144c02040363e1dde8bdacfa59f6a 100644 (file)
@@ -1,3 +1,8 @@
+2011-10-19  Jakub Jelinek  <jakub@redhat.com>
+
+       * dwarf2out.c (loc_descriptor): For SUBREG pass SUBREG_REG's mode as
+       second argument instead of mode.
+
 2011-10-18  Jakub Jelinek  <jakub@redhat.com>
 
        * config/i386/i386.c (ix86_expand_vec_perm): In merge_two use
index c11f666bfbfbe7bdd454867b84220df2c7a0b8c1..e328201a82aa120fb5d1f68ea04e4787cf29e890 100644 (file)
@@ -12502,7 +12502,8 @@ loc_descriptor (rtx rtl, enum machine_mode mode,
         legitimate to make the Dwarf info refer to the whole register which
         contains the given subreg.  */
       if (REG_P (SUBREG_REG (rtl)) && subreg_lowpart_p (rtl))
-       loc_result = loc_descriptor (SUBREG_REG (rtl), mode, initialized);
+       loc_result = loc_descriptor (SUBREG_REG (rtl),
+                                    GET_MODE (SUBREG_REG (rtl)), initialized);
       else
        goto do_default;
       break;