[Bug tree-optimization/82128] [8 Regression] ICE on valid code

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Sep 12 11:47:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82128

--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
Latent issue in gimple-fold.c:

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
                    {


More information about the Gcc-bugs mailing list