From 150be262b98a8601cbc470c789c5b7b0907ddfb4 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Tue, 19 Jan 2016 12:55:10 +0100 Subject: [PATCH] lto-streamer-out.c (lto_output): Do not stream instrumentation thunks. * lto-streamer-out.c (lto_output): Do not stream instrumentation thunks. From-SVN: r232551 --- gcc/ChangeLog | 5 +++++ gcc/lto-streamer-out.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0272cd34391..b2423f24b61 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-01-19 Jan Hubicka + + * lto-streamer-out.c (lto_output): Do not stream instrumentation + thunks. + 2016-01-19 Jan Hubicka * symtab.c (symtab_node::asm_name): Do not call printable name directly. diff --git a/gcc/lto-streamer-out.c b/gcc/lto-streamer-out.c index 0cefc15f3e6..6bb76cc6ebb 100644 --- a/gcc/lto-streamer-out.c +++ b/gcc/lto-streamer-out.c @@ -2320,7 +2320,8 @@ lto_output (void) if (cgraph_node *node = dyn_cast (snode)) { if (lto_symtab_encoder_encode_body_p (encoder, node) - && !node->alias) + && !node->alias + && (!node->thunk.thunk_p || !node->instrumented_version)) { if (flag_checking) {