This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix PR82128
- From: Richard Biener <rguenther at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 12 Sep 2017 15:50:21 +0200 (CEST)
- Subject: [PATCH] Fix PR82128
- Authentication-results: sourceware.org; auth=none
This is the one with the folding fix...
Bootstrapped on x86_64-unknown-linux-gnu, testing in progress.
Richard.
2017-09-12 Richard Biener <rguenther@suse.de>
PR middle-end/82128
* gimple-fold.c (gimple_fold_call): Update iterator properly.
Index: gcc/gimple-fold.c
===================================================================
--- gcc/gimple-fold.c (revision 252002)
+++ gcc/gimple-fold.c (working copy)
@@ -3872,7 +3872,7 @@ gimple_fold_call (gimple_stmt_iterator *
we need to preserve GIMPLE_CALL statement
at position of GSI iterator. */
update_call_from_tree (gsi, def);
- gsi_insert_before (gsi, new_stmt, GSI_NEW_STMT);
+ gsi_insert_before (gsi, new_stmt, GSI_SAME_STMT);
}
else
{