From: H.J. Lu Date: Mon, 9 May 2011 18:16:04 +0000 (+0000) Subject: One more POINTERS_EXTEND_UNSIGNED fix in mem_loc_descriptor. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=805d6a7592f18617e4dda5f839dfd02618aaf779;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6406136d7e9..bf217bd3437 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,10 @@ +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. + 2011-05-08 Ville Voutilainen * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST): Convert to enum. diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index c08f5aac614..b85a55ec67c 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),