Commit 6291062f by Jan Hubicka Committed by Jan Hubicka

re PR c++/80763 (-O3 causes error: inline clone in same comdat group list)


	PR ipa/80763
	* ipa-comdats.c (set_comdat_group): Only set comdat group of real
	symbols; not inline clones.

From-SVN: r256369
parent 3a123ed7
2018-01-09 Jan Hubicka <hubicka@ucw.cz>
PR ipa/80763
* ipa-comdats.c (set_comdat_group): Only set comdat group of real
symbols; not inline clones.
2018-01-09 Jakub Jelinek <jakub@redhat.com>
PR target/83507
......
......@@ -211,8 +211,11 @@ set_comdat_group (symtab_node *symbol,
symtab_node *head = (symtab_node *)head_p;
gcc_assert (!symbol->get_comdat_group ());
symbol->set_comdat_group (head->get_comdat_group ());
symbol->add_to_same_comdat_group (head);
if (symbol->real_symbol_p ())
{
symbol->set_comdat_group (head->get_comdat_group ());
symbol->add_to_same_comdat_group (head);
}
return false;
}
......
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