re PR ipa/63838 (ipa-pure-const miscomputes can_throw)
authorJakub Jelinek <jakub@redhat.com>
Wed, 12 Nov 2014 23:09:15 +0000 (00:09 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Wed, 12 Nov 2014 23:09:15 +0000 (00:09 +0100)
commitabb502071166f1eee1869cd5304d30d6763979f9
tree0a91fe6829441e9337146867d824a26d24912a60
parentf03cee1186e8cf919af19e5941492d20bdcfa860
re PR ipa/63838 (ipa-pure-const miscomputes can_throw)

PR ipa/63838
* ipa-pure-const.c (propagate_nothrow): Walk w->indirect_calls
chain instead of node->indirect_calls.  Put !can_throw into
conditions of all the loops.

* g++.dg/ipa/pr63838.C: New test.

From-SVN: r217449
gcc/ChangeLog
gcc/ipa-pure-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ipa/pr63838.C [new file with mode: 0644]