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
This commit is contained in:
parent
3a123ed751
commit
6291062f31
|
@ -1,3 +1,9 @@
|
|||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue