mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-28 16:01:00 +08:00
re PR lto/65380 ([ICF] LTO: ICE in add_symbol_to_partition_1, at lto/lto-partition.c:158)
Fix PR ipa/65380. PR ipa/65380 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols. (sem_variable::merge): Likewise. From-SVN: r221519
This commit is contained in:
parent
e68287df88
commit
257291fc89
@ -1,3 +1,9 @@
|
||||
2015-03-19 Jan Hubicka <hubicka@ucw.cz>
|
||||
|
||||
PR ipa/65380
|
||||
* ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
|
||||
(sem_variable::merge): Likewise.
|
||||
|
||||
2015-03-19 Martin Liska <mliska@suse.cz>
|
||||
|
||||
PR ipa/65465
|
||||
|
@ -814,6 +814,13 @@ sem_function::merge (sem_item *alias_item)
|
||||
bool original_address_matters = original->address_matters_p ();
|
||||
bool alias_address_matters = alias->address_matters_p ();
|
||||
|
||||
if (DECL_EXTERNAL (alias->decl))
|
||||
{
|
||||
if (dump_file)
|
||||
fprintf (dump_file, "Not unifying; alias is external.\n\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (DECL_NO_INLINE_WARNING_P (original->decl)
|
||||
!= DECL_NO_INLINE_WARNING_P (alias->decl))
|
||||
{
|
||||
@ -1776,6 +1783,13 @@ sem_variable::merge (sem_item *alias_item)
|
||||
return false;
|
||||
}
|
||||
|
||||
if (DECL_EXTERNAL (alias_item->decl))
|
||||
{
|
||||
if (dump_file)
|
||||
fprintf (dump_file, "Not unifying; alias is external.\n\n");
|
||||
return false;
|
||||
}
|
||||
|
||||
sem_variable *alias_var = static_cast<sem_variable *> (alias_item);
|
||||
|
||||
varpool_node *original = get_node ();
|
||||
|
Loading…
x
Reference in New Issue
Block a user