* symtab.c (symtab_node::get_partitioning_class): Aliases of external
symbols are external.
From-SVN: r279464
+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.
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)