PR ipa/77905
commit98b8f2a556ab071045fe370f19049d341af41bc8
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 13 Dec 2016 08:48:45 +0000 (13 08:48 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 13 Dec 2016 08:48:45 +0000 (13 08:48 +0000)
tree8166df4ebffb4989c80fc6adbc1163d94c21c06a
parentba3f376e8bd246431d94d6b07fb40b38b55d59e6
PR ipa/77905
* ipa-pure-const.c (cdtor_p): Return true for
DECL_STATIC_{CON,DE}STRUCTOR even when it is
DECL_LOOPING_CONST_OR_PURE_P.

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@243596 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/ipa-pure-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ipa/pr77905.C [new file with mode: 0644]