aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2016-01-19 12:55:10 +0100
committerJan Hubicka <hubicka@gcc.gnu.org>2016-01-19 11:55:10 +0000
commit150be262b98a8601cbc470c789c5b7b0907ddfb4 (patch)
tree95df07348883985d4da142d259e3698086f8adba
parentae4bbcb233b0f9145d8ed56aac835b7eb40d3495 (diff)
downloadgcc-150be262b98a8601cbc470c789c5b7b0907ddfb4.zip
gcc-150be262b98a8601cbc470c789c5b7b0907ddfb4.tar.gz
gcc-150be262b98a8601cbc470c789c5b7b0907ddfb4.tar.bz2
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
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/lto-streamer-out.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 0272cd3..b2423f2 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
2016-01-19 Jan Hubicka <hubicka@ucw.cz>
+ * lto-streamer-out.c (lto_output): Do not stream instrumentation
+ thunks.
+
+2016-01-19 Jan Hubicka <hubicka@ucw.cz>
+
* symtab.c (symtab_node::asm_name): Do not call printable name directly.
(symtab_node::name): Report name as unnamed if DECL_NAME is not set.
diff --git a/gcc/lto-streamer-out.c b/gcc/lto-streamer-out.c
index 0cefc15..6bb76cc 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 <cgraph_node *> (snode))
{
if (lto_symtab_encoder_encode_body_p (encoder, node)
- && !node->alias)
+ && !node->alias
+ && (!node->thunk.thunk_p || !node->instrumented_version))
{
if (flag_checking)
{