Commit c5235f4c by Jan Hubicka Committed by Rainer Orth

re PR middle-end/49062 (Many C++ tests ICE on Tru64 UNIX: non-DECL_ONE_ONLY node…

re PR middle-end/49062 (Many C++ tests ICE on Tru64 UNIX: non-DECL_ONE_ONLY node in a same_comdat_group list)

2011-05-25  Jan Hubicka  <jh@suse.cz>

	PR middle-end/49062
	* ipa.c (function_and_variable_visibility): Only add to same
	comdat group list if DECL_ONE_ONLY.

From-SVN: r174180
parent 8242a0f6
2011-05-25 Jan Hubicka <jh@suse.cz>
PR middle-end/49062
* ipa.c (function_and_variable_visibility): Only add to same
comdat group list if DECL_ONE_ONLY.
2011-05-25 Andrey Belevantsev <abel@ispras.ru>
PR rtl-optimization/49014
......
......@@ -897,7 +897,7 @@ function_and_variable_visibility (bool whole_program)
{
DECL_COMDAT (node->decl) = 1;
DECL_COMDAT_GROUP (node->decl) = DECL_COMDAT_GROUP (decl_node->decl);
if (!node->same_comdat_group)
if (DECL_ONE_ONLY (decl_node->decl) && !node->same_comdat_group)
{
node->same_comdat_group = decl_node;
if (!decl_node->same_comdat_group)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment