aboutsummaryrefslogtreecommitdiff
path: root/gcc/dwarf2out.c
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 /gcc/dwarf2out.c
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
Diffstat (limited to 'gcc/dwarf2out.c')
-rw-r--r--gcc/dwarf2out.c3
1 files changed, 2 insertions, 1 deletions
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;