re PR tree-optimization/82128 (ICE on valid code)
authorRichard Biener <rguenther@suse.de>
Wed, 13 Sep 2017 08:13:03 +0000 (08:13 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 13 Sep 2017 08:13:03 +0000 (08:13 +0000)
commit2da6996c61125da38e0e9e8182ca2a623e03de63
tree85968996243f9eb29194674f04443ee99447c9c1
parent5a41741f0c311c5d4bca85292116f67ec7a2a60f
re PR tree-optimization/82128 (ICE on valid code)

2017-09-13  Richard Biener  <rguenther@suse.de>

PR middle-end/82128
* gimple-fold.c (gimple_fold_call): Update SSA name in-place to
default-def to avoid breaking iterator update with the weird
interaction with cgraph_update_edges_for_call_stmt_node.

* g++.dg/pr82128.C: New testcase.

From-SVN: r252062
gcc/ChangeLog
gcc/gimple-fold.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/pr82128.C [new file with mode: 0644]