This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[chkp] Clear instrumented_version and thunk_info in cgraph_node::reset


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 ();


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]