]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
lto-streamer-out.c (lto_output): Do not stream instrumentation thunks.
authorJan Hubicka <hubicka@ucw.cz>
Tue, 19 Jan 2016 11:55:10 +0000 (12:55 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 19 Jan 2016 11:55:10 +0000 (11:55 +0000)
* lto-streamer-out.c (lto_output): Do not stream instrumentation
thunks.

From-SVN: r232551

gcc/ChangeLog
gcc/lto-streamer-out.c

index 0272cd34391cae0a728550a378d0466818c64739..b2423f24b611f1ce5ccd876a8990768b0a73e187 100644 (file)
@@ -1,3 +1,8 @@
+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.
index 0cefc15f3e6646b7efcf98b16484bacf08bf37f2..6bb76cc6ebb80cc668f8ec23bb46be1375cf7c25 100644 (file)
@@ -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)
                {