[Bug ipa/61659] [4.9 Regression] Extra undefined symbol because of devirtualization
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Sep 10 14:28:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61659
--- Comment #34 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Wed Sep 10 14:27:40 2014
New Revision: 215131
URL: https://gcc.gnu.org/viewcvs?rev=215131&root=gcc&view=rev
Log:
PR lto/53808
PR c++/61659
* decl2.c (note_comdat_fn): New.
(set_comdat): New.
(cp_write_global_declarations): Call set_comdat.
* method.c (implicitly_declare_fn): Call note_comdat_fn.
* pt.c (tsubst_decl) [FUNCTION_DECL]: Likewise.
* decl2.c (mark_needed): Mark clones.
(import_export_decl): Not here.
Added:
branches/gcc-4_9-branch/gcc/testsuite/g++.dg/abi/no-weak1.C
branches/gcc-4_9-branch/gcc/testsuite/g++.dg/abi/spec1.C
branches/gcc-4_9-branch/gcc/testsuite/g++.dg/opt/devirt5.C
branches/gcc-4_9-branch/gcc/testsuite/g++.dg/template/friend56.C
branches/gcc-4_9-branch/gcc/testsuite/g++.dg/template/spec38.C
Modified:
branches/gcc-4_9-branch/gcc/cp/ChangeLog
branches/gcc-4_9-branch/gcc/cp/cp-tree.h
branches/gcc-4_9-branch/gcc/cp/decl2.c
branches/gcc-4_9-branch/gcc/cp/method.c
branches/gcc-4_9-branch/gcc/cp/pt.c
branches/gcc-4_9-branch/gcc/testsuite/g++.dg/opt/devirt4.C
More information about the Gcc-bugs
mailing list