From: Richard Biener Date: Thu, 4 Dec 2014 12:35:42 +0000 (+0000) Subject: gimple-fold.c (replace_stmt_with_simplification): Properly fail when maybe_push_res_t... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=de665bbd932894baef6fa51a9989ab089602434f;p=gcc.git gimple-fold.c (replace_stmt_with_simplification): Properly fail when maybe_push_res_to_seq fails. 2014-12-04 Richard Biener * gimple-fold.c (replace_stmt_with_simplification): Properly fail when maybe_push_res_to_seq fails. From-SVN: r218353 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8b7bbda075f..fc020810fb0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-12-04 Richard Biener + + * gimple-fold.c (replace_stmt_with_simplification): Properly + fail when maybe_push_res_to_seq fails. + 2014-12-04 Ganesh Gopalasubramanian * config/aarch64/aarch64.md (define_insn "prefetch"): New. diff --git a/gcc/gimple-fold.c b/gcc/gimple-fold.c index d6ba2b266ef..f22281ac206 100644 --- a/gcc/gimple-fold.c +++ b/gcc/gimple-fold.c @@ -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 ");