From: Jan Hubicka Date: Tue, 19 Jan 2016 11:55:10 +0000 (+0100) Subject: lto-streamer-out.c (lto_output): Do not stream instrumentation thunks. X-Git-Tag: basepoints/gcc-7~1510 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=150be262b98a8601cbc470c789c5b7b0907ddfb4;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0272cd34391c..b2423f24b611 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 0cefc15f3e66..6bb76cc6ebb8 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) {