Commit 634c5bca by Jan Hubicka Committed by Jan Hubicka

symtab.c (symtab_node::get_partitioning_class): Aliases of external symbols are external.

	* symtab.c (symtab_node::get_partitioning_class): Aliases of external
	symbols are external.

From-SVN: r279464
parent e24f6408
2019-12-17 Jan Hubicka <hubicka@ucw.cz>
* symtab.c (symtab_node::get_partitioning_class): Aliases of external
symbols are external.
2019-12-17 Christophe Lyon <christophe.lyon@linaro.org>
* config/arm/arm-protos.h (thumb1_gen_const_int): Add new prototype.
......@@ -1952,6 +1952,11 @@ symtab_node::get_partitioning_class (void)
if (DECL_EXTERNAL (decl))
return SYMBOL_EXTERNAL;
/* Even static aliases of external functions as external. Those can happen
when COMDAT got resolved to non-IL implementation. */
if (alias && DECL_EXTERNAL (ultimate_alias_target ()->decl))
return SYMBOL_EXTERNAL;
if (varpool_node *vnode = dyn_cast <varpool_node *> (this))
{
if (alias && definition && !ultimate_alias_target ()->definition)
......
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