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

--- Comment #10 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
Author: hubicka
Date: Sun May 24 19:38:14 2015
New Revision: 223633

URL: https://gcc.gnu.org/viewcvs?rev=223633&root=gcc&view=rev
Log:

        PR lto/66180
        * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
        is set; check for assembler name at LTO time.
        (type_in_anonymous_namespace): Remove hacks, check that all
        anonymous types are called "<anon>"
        (odr_type_p): Simplify; add check for "<anon>"
        (odr_subtypes_equivalent): Add odr_type_p check.
        * tree.c (need_assembler_name_p): Even anonymous namespace needs
        assembler name.
        * mangle.c (mangle_decl): Mangle anonymous namespace types as
        "<anon>".
        * g++.dg/lto/pr66180_0.C: New testcase.
        * g++.dg/lto/pr66180_1.C: New testcase.

Added:
    trunk/gcc/testsuite/g++.dg/lto/pr66180_0.C
    trunk/gcc/testsuite/g++.dg/lto/pr66180_1.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/mangle.c
    trunk/gcc/ipa-devirt.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree.c

Reply via email to