Message ID | 20160119121614.GG5273@kam.mff.cuni.cz |
---|---|
State | New |
Headers | show |
On Tue, Jan 19, 2016 at 4:16 AM, Jan Hubicka <hubicka@ucw.cz> wrote: > 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. This caused: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69369
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 ();