From b9a5b5b2a2771889f315d778629dc7e6245a69cf Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Sun, 3 Apr 2011 20:46:20 +0930 Subject: [PATCH] dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM. * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM. From-SVN: r171905 --- gcc/ChangeLog | 4 ++++ gcc/dwarf2out.c | 4 +--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4be06bf4a6b..bbd090cee3b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2011-04-03 Alan Modra + + * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM. + 2011-04-03 Michael Matz * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 222f6bf0c8e..700f7c64bd3 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -13706,9 +13706,7 @@ mem_loc_descriptor (rtx rtl, enum machine_mode mode, break; case LO_SUM: - rtl = XEXP (rtl, 1); - - /* ... fall through ... */ + return mem_loc_descriptor (XEXP (rtl, 1), mode, initialized); case LABEL_REF: /* Some ports can transform a symbol ref into a label ref, because -- 2.30.2