https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77905

--- Comment #7 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Author: jakub
Date: Wed Dec 21 12:49:44 2016
New Revision: 243850

URL: https://gcc.gnu.org/viewcvs?rev=243850&root=gcc&view=rev
Log:
        Backported from mainline
        2016-12-13  Jakub Jelinek  <ja...@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.

Added:
    branches/gcc-6-branch/gcc/testsuite/g++.dg/ipa/pr77905.C
Modified:
    branches/gcc-6-branch/gcc/ChangeLog
    branches/gcc-6-branch/gcc/ipa-pure-const.c
    branches/gcc-6-branch/gcc/testsuite/ChangeLog

Reply via email to