cgraph.c (cgraph_add_to_same_comdat_group): New.
authorJason Merrill <jason@redhat.com>
Sat, 9 Jul 2011 03:33:44 +0000 (23:33 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Sat, 9 Jul 2011 03:33:44 +0000 (23:33 -0400)
commit2fda8e144a7db5ba6025cfe643da0c6111cc2b0f
tree91cf7e9a3eeaae34dd4f07d9086f498096305f0d
parente8f8774a901e9645bfadc23d4e72be552b0e9b72
cgraph.c (cgraph_add_to_same_comdat_group): New.

gcc/
* cgraph.c (cgraph_add_to_same_comdat_group): New.
* cgraph.h: Declare it.
* ipa.c (function_and_variable_visibility): Make sure thunks
have the right visibility.
gcc/cp/
* method.c (use_thunk): Use cgraph_add_to_same_comdat_group.
* optimize.c (maybe_clone_body): Likewise.
* semantics.c (maybe_add_lambda_conv_op): Likewise.

From-SVN: r176071
gcc/ChangeLog
gcc/cgraph.c
gcc/cgraph.h
gcc/cp/ChangeLog
gcc/cp/method.c
gcc/cp/optimize.c
gcc/cp/semantics.c
gcc/ipa.c