]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR ipa/77905 (ICE at -Os and above in both 32-bit and 64-bit modes on...
authorJakub Jelinek <jakub@redhat.com>
Tue, 30 May 2017 07:51:12 +0000 (09:51 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 30 May 2017 07:51:12 +0000 (09:51 +0200)
commit701d112e2eb4aedafbc7084664b7d017f06cd3f0
tree57e1bfe1f8d0e1fa52c0bb7385db6c6e3e938e56
parent6c23e2707005af80663979cd16222b643f50f000
backport: 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))

Backported from mainline
2016-12-13  Jakub Jelinek  <jakub@redhat.com>

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: r248634
gcc/ChangeLog
gcc/ipa-pure-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ipa/pr77905.C [new file with mode: 0644]