This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[chkp] Clear instrumented_version and thunk_info in cgraph_node::reset
- From: Jan Hubicka <hubicka at ucw dot cz>
- To: gcc-patches at gcc dot gnu dot org, enkovich dot gnu at gmail dot com
- Date: Tue, 19 Jan 2016 13:16:14 +0100
- Subject: [chkp] Clear instrumented_version and thunk_info in cgraph_node::reset
- Authentication-results: sourceware.org; auth=none
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 ();