From: Alan Modra Date: Wed, 10 Sep 2014 05:02:28 +0000 (+0930) Subject: re PR debug/60655 (ICE: output_operand: invalid expression as operand) X-Git-Tag: releases/gcc-4.8.4~235 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1eb3c2a5b42c5ba72c9ee7f8fb204b5be4e1450b;p=thirdparty%2Fgcc.git re PR debug/60655 (ICE: output_operand: invalid expression as operand) PR debug/60655 * dwarf2out.c (mem_loc_descriptor ): Return NULL if addend can't be output. From-SVN: r215103 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ecd14a43fabb..9a34c8e23065 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2014-09-10 Alan Modra + + PR debug/60655 + * dwarf2out.c (mem_loc_descriptor ): Return NULL if addend + can't be output. + 2014-09-09 Richard Biener Backport from mainline diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c index 77771c09b64c..f387e610114a 100644 --- a/gcc/dwarf2out.c +++ b/gcc/dwarf2out.c @@ -12234,7 +12234,7 @@ mem_loc_descriptor (rtx rtl, enum machine_mode mode, op1 = mem_loc_descriptor (XEXP (rtl, 1), mode, mem_mode, VAR_INIT_STATUS_INITIALIZED); if (op1 == 0) - break; + return NULL; add_loc_descr (&mem_loc_result, op1); add_loc_descr (&mem_loc_result, new_loc_descr (DW_OP_plus, 0, 0));