diff mbox

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

Message ID 20160119121614.GG5273@kam.mff.cuni.cz
State New
Headers show

Commit Message

Jan Hubicka Jan. 19, 2016, 12:16 p.m. UTC
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.

Comments

H.J. Lu Jan. 19, 2016, 11:22 p.m. UTC | #1
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
diff mbox

Patch

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