--- Comment #5 from David Malcolm <dmalcolm at gcc dot> ---
Both decls of "foo" are using the same FUNCTION_DECL.

node->alias is set in varasm.c: assemble_alias here:

5991        cgraph_node::get_create (decl)->alias = true;

when processing the second decl of "foo" here:

 void foo ();

since the FUNCTION_DECL for "foo" has an "alias" attribute, given to it by
handle_weakref_attribute when parsing the first decl of here:

static void foo () { }

Reply via email to