Hi, this patch makes the code turning instrumentation thunks into transparent aliases to work.
Bootstrapped/regtested x86_64-linux, will commit it later today. Honza * cgraphunit.c (cgraph_node::reset): Clear thunk info and instrumented_version, too. Index: cgraphunit.c =================================================================== --- cgraphunit.c (revision 232553) +++ cgraphunit.c (working copy) @@ -366,12 +366,14 @@ cgraph_node::reset (void) memset (&local, 0, sizeof (local)); memset (&global, 0, sizeof (global)); memset (&rtl, 0, sizeof (rtl)); + memset (&thunk, 0, sizeof (thunk_info)); analyzed = false; definition = false; alias = false; transparent_alias = false; weakref = false; cpp_implicit_alias = false; + instrumented_version = NULL; remove_callees (); remove_all_references ();