[Bug middle-end/79755] [8/9/10 Regression] ICE: segfault in cgraph_node::get, at cgraph.h:1261

xerofoify at gmail dot com gcc-bugzilla@gcc.gnu.org
Thu Mar 5 20:33:00 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79755

--- Comment #12 from Nicholas Krause <xerofoify at gmail dot com> ---
Sorry about not reading the comment carefully.

I'm not if this helps but after looking at the change to this file:
https://gcc.gnu.org/viewcvs/gcc/trunk/gcc/cgraph.c?r1=199577&r2=199576&pathrev=199577

n = cgraph_create_function_alias (alias, decl);

was never changed for creating with the new function arguments as found here:
struct cgraph_node *
cgraph_create_function_alias (tree alias, tree target)

and therefore it should be:

n = cgraph_create_function_alias (alias, target);

and not decl.


More information about the Gcc-bugs mailing list