2017-03-17 Richard Biener <rguenther@suse.de>
commit46b24e8bc3a7722405d80c70bc498c5570f02238
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 17 Mar 2017 12:48:56 +0000 (17 12:48 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 17 Mar 2017 12:48:56 +0000 (17 12:48 +0000)
tree3a1c18ddfd849a4afa672dd26bb955d6f9e0cfa4
parentb00967a45a66d5c2db0aecd5d6901b56fe7b69e5
2017-03-17  Richard Biener  <rguenther@suse.de>

PR middle-end/80075
* tree-eh.c (stmt_could_throw_1_p): Only handle gimple assigns.
Properly verify the LHS before the RHS possibly claims to be
handled.
(stmt_could_throw_p): Hande gimple conds fully here.  Clobbers
do not throw.

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@246223 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr80075.C [new file with mode: 0644]
gcc/tree-eh.c