re PR c++/78051 (error: dead STMT in EH table when using -O2)
authorRichard Biener <rguenther@suse.de>
Fri, 21 Oct 2016 07:07:06 +0000 (07:07 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 21 Oct 2016 07:07:06 +0000 (07:07 +0000)
commita20d03c88261b7d475db7c410c1018df326c67af
treedc2a148dd9df35d3f1ed9a36fe703517ace05d4c
parent924fae46b341e810ec5f1fa0e99b5f0cadeff7eb
re PR c++/78051 (error: dead STMT in EH table when using -O2)

2016-10-21  Richard Biener  <rguenther@suse.de>

PR tree-optimization/78051
* tree-vrp.c (evrp_dom_walker::before_dom_children): Update stmt
and mark replaced if folding did something.

* g++.dg/torture/pr78051.C: New testcase.

From-SVN: r241394
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr78051.C [new file with mode: 0644]
gcc/tree-vrp.c