]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR ipa/77905 (ICE at -Os and above in both 32-bit and 64-bit modes on x86_64-linux...
authorJakub Jelinek <jakub@redhat.com>
Tue, 13 Dec 2016 08:48:45 +0000 (09:48 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 13 Dec 2016 08:48:45 +0000 (09:48 +0100)
commitcd6d518b2978157020752ae1b5627e7619923930
tree8166df4ebffb4989c80fc6adbc1163d94c21c06a
parent816f4314406078414c7d200fa28ccb680530bed9
re PR ipa/77905 (ICE at -Os and above in both 32-bit and 64-bit modes on x86_64-linux-gnu (internal compiler error: in ipa_comdats, at ipa-comdats.c:352))

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.

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