]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR debug/60655 (ICE: output_operand: invalid expression as operand)
authorAlan Modra <amodra@gmail.com>
Wed, 10 Sep 2014 05:02:28 +0000 (14:32 +0930)
committerAlan Modra <amodra@gcc.gnu.org>
Wed, 10 Sep 2014 05:02:28 +0000 (14:32 +0930)
PR debug/60655
* dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
can't be output.

From-SVN: r215103

gcc/ChangeLog
gcc/dwarf2out.c

index ecd14a43fabbf4e9e5fffd701f8706d68886d968..9a34c8e2306540fa22a44726ea15f05496c29f64 100644 (file)
@@ -1,3 +1,9 @@
+2014-09-10  Alan Modra  <amodra@gmail.com>
+
+       PR debug/60655
+       * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
+       can't be output.
+
 2014-09-09  Richard Biener  <rguenther@suse.de>
 
        Backport from mainline
index 77771c09b64c5a8493b3afb8351dd85f68eef024..f387e610114af00af61d5ac966b775972c988599 100644 (file)
@@ -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));