aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-fold.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2012-11-27 09:20:02 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2012-11-27 09:20:02 +0000
commit77d19c725f827218975859ab7d3a680904075216 (patch)
tree7c54d8d587d7a70769a6edb63a1745ef0bfdf60c /gcc/gimple-fold.c
parent3711757e197be740e22e46059b23533ac89cff48 (diff)
downloadgcc-77d19c725f827218975859ab7d3a680904075216.zip
gcc-77d19c725f827218975859ab7d3a680904075216.tar.gz
gcc-77d19c725f827218975859ab7d3a680904075216.tar.bz2
re PR middle-end/55331 (ICE: SIGSEGV in substitute_and_fold with -O2 -fno-tree-fre)
2012-11-27 Richard Biener <rguenther@suse.de> PR middle-end/55331 * gimple-fold.c (gimplify_and_update_call_from_tree): Replace stmt with a NOP instead of removing it. * g++.dg/opt/pr55331.C: New testcase. From-SVN: r193839
Diffstat (limited to 'gcc/gimple-fold.c')
-rw-r--r--gcc/gimple-fold.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gimple-fold.c b/gcc/gimple-fold.c
index 969cfeb..251be24 100644
--- a/gcc/gimple-fold.c
+++ b/gcc/gimple-fold.c
@@ -607,7 +607,7 @@ gimplify_and_update_call_from_tree (gimple_stmt_iterator *si_p, tree expr)
unlink_stmt_vdef (stmt);
release_defs (stmt);
}
- gsi_remove (si_p, true);
+ gsi_replace (si_p, gimple_build_nop (), true);
return;
}
}