aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2011-10-19 10:43:09 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2011-10-19 10:43:09 +0200
commit091751993553dae197bfda9230f15d9cb9dd86df (patch)
tree4c1e24d35e788fa79e9f10fa53b6a59a1bd253da
parent02a448403a0cd73c9ab14494aa237df810e1ba1d (diff)
downloadgcc-091751993553dae197bfda9230f15d9cb9dd86df.zip
gcc-091751993553dae197bfda9230f15d9cb9dd86df.tar.gz
gcc-091751993553dae197bfda9230f15d9cb9dd86df.tar.bz2
dwarf2out.c (loc_descriptor): For SUBREG pass SUBREG_REG's mode as second argument instead of mode.
* dwarf2out.c (loc_descriptor): For SUBREG pass SUBREG_REG's mode as second argument instead of mode. From-SVN: r180178
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/dwarf2out.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index d8f5a82..5d28f99 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index c11f666..e328201 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -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;