PR lto/53808 accepted/tizen/common/20141030.230812 submit/tizen_common/20141029.223218
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 10 Sep 2014 14:27:40 +0000 (14:27 +0000)
committerChanho Park <chanho61.park@samsung.com>
Mon, 20 Oct 2014 07:45:10 +0000 (16:45 +0900)
commitd111e7bf401015494c1875a0eac7ca1988a6bcea
tree79b104bdae6a2ce1b6ee57b8e4be15dc2750080f
parentc1a2391012d08d61368e5597c092615036977f42
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@215131 138bc75d-0d04-0410-961f-82ee72b054a4

Conflicts:
gcc/cp/ChangeLog
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl2.c
gcc/cp/method.c
gcc/cp/pt.c
gcc/testsuite/g++.dg/abi/no-weak1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/abi/spec1.C [new file with mode: 0644]
gcc/testsuite/g++.dg/opt/devirt4.C
gcc/testsuite/g++.dg/opt/devirt5.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/friend56.C [new file with mode: 0644]
gcc/testsuite/g++.dg/template/spec38.C [new file with mode: 0644]