gimple-fold.c (replace_stmt_with_simplification): Properly fail when maybe_push_res_t...
authorRichard Biener <rguenther@suse.de>
Thu, 4 Dec 2014 12:35:42 +0000 (12:35 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 4 Dec 2014 12:35:42 +0000 (12:35 +0000)
2014-12-04  Richard Biener  <rguenther@suse.de>

* gimple-fold.c (replace_stmt_with_simplification): Properly
fail when maybe_push_res_to_seq fails.

From-SVN: r218353

gcc/ChangeLog
gcc/gimple-fold.c

index 8b7bbda075f9c4c14eb4db1f6cc7db5f6cad87e0..fc020810fb0313607a2328109ddf6fc133b5ca48 100644 (file)
@@ -1,3 +1,8 @@
+2014-12-04  Richard Biener  <rguenther@suse.de>
+
+       * gimple-fold.c (replace_stmt_with_simplification): Properly
+       fail when maybe_push_res_to_seq fails.
+
 2014-12-04 Ganesh Gopalasubramanian  <Ganesh.Gopalasubramanian@amd.com>
 
        * config/aarch64/aarch64.md (define_insn "prefetch"): New.
index d6ba2b266ef4c493852a6da70f6edc5f2767df24..f22281ac206079fca054c8d2e5752d6145862726 100644 (file)
@@ -3345,8 +3345,9 @@ replace_stmt_with_simplification (gimple_stmt_iterator *gsi,
       if (gimple_has_lhs (stmt))
        {
          tree lhs = gimple_get_lhs (stmt);
-         maybe_push_res_to_seq (rcode, TREE_TYPE (lhs),
-                                ops, seq, lhs);
+         if (!maybe_push_res_to_seq (rcode, TREE_TYPE (lhs),
+                                     ops, seq, lhs))
+           return false;
          if (dump_file && (dump_flags & TDF_DETAILS))
            {
              fprintf (dump_file, "gimple_simplified to ");