From 805d6a7592f18617e4dda5f839dfd02618aaf779 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Mon, 9 May 2011 18:16:04 +0000 Subject: One more POINTERS_EXTEND_UNSIGNED fix in mem_loc_descriptor. 2011-05-09 H.J. Lu PR debug/48853 * dwarf2out.c (mem_loc_descriptor) : If POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is Pmode and mem_mode is not VOIDmode. From-SVN: r173587 --- gcc/dwarf2out.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gcc/dwarf2out.c') diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index c08f5aa..b85a55e 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -13880,7 +13880,11 @@ mem_loc_descriptor (rtx rtl, enum machine_mode mode, break; if (GET_MODE_CLASS (mode) == MODE_INT && GET_MODE_CLASS (GET_MODE (SUBREG_REG (rtl))) == MODE_INT - && GET_MODE_SIZE (mode) <= DWARF2_ADDR_SIZE + && (GET_MODE_SIZE (mode) <= DWARF2_ADDR_SIZE +#ifdef POINTERS_EXTEND_UNSIGNED + || (mode == Pmode && mem_mode != VOIDmode) +#endif + ) && GET_MODE_SIZE (GET_MODE (SUBREG_REG (rtl))) <= DWARF2_ADDR_SIZE) { mem_loc_result = mem_loc_descriptor (SUBREG_REG (rtl), -- cgit v1.1