lto-common.c (gimple_register_canonical_type_1): Do not look for non-ODR conflicts...
authorJan Hubicka <hubicka@ucw.cz>
Thu, 18 Jul 2019 13:08:34 +0000 (15:08 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Thu, 18 Jul 2019 13:08:34 +0000 (13:08 +0000)
commitb01659aa867a8fee932ef389f5066495f531da77
treec3b88991d6d9777e8b430b6e22e4e6b621e177af
parent3796e3b399875dac8e6d100c7fe662a91a39ba42
lto-common.c (gimple_register_canonical_type_1): Do not look for non-ODR conflicts of types in anonymous namespaces.

* lto-common.c (gimple_register_canonical_type_1): Do not look for
non-ODR conflicts of types in anonymous namespaces.
(unify_scc): Do not merge anonymous namespace types.
* g++.dg/lto/alias-5_0.C: New testcase.
* g++.dg/lto/alias-5_1.C: New.
* g++.dg/lto/alias-5_2.c: New.

From-SVN: r273571
gcc/lto/ChangeLog
gcc/lto/lto-common.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lto/alias-5_0.C [new file with mode: 0644]
gcc/testsuite/g++.dg/lto/alias-5_1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/lto/alias-5_2.c [new file with mode: 0644]