Avoid streaming stray references.
authorJan Hubicka <jh@suse.cz>
Fri, 22 May 2020 14:37:06 +0000 (16:37 +0200)
committerJan Hubicka <jh@suse.cz>
Fri, 22 May 2020 14:37:06 +0000 (16:37 +0200)
commitbcb63eb2cbd3caf212b9cf42d8c218c09dc6ff8b
treea533824ecaf664934915b8534378801b2da04ba2
parent098ba49c7cd4d3f6202b6472aec8c33b68bbada7
Avoid streaming stray references.

this patch avoids stremaing completely useless stray references to gobal decl
stream.  I am re-testing the patch (rebased to current tree) on x86_64-linux
and intend to commit once testing finishes.

gcc/ChangeLog:

2020-05-22  Jan Hubicka  <hubicka@ucw.cz>

* lto-streamer-out.c (lto_output_tree): Do not stream final ref if
it is not needed.

gcc/lto/ChangeLog:

2020-05-22  Jan Hubicka  <hubicka@ucw.cz>

* lto-common.c (lto_read_decls): Do not skip stray refs.
gcc/ChangeLog
gcc/lto-streamer-out.c
gcc/lto/ChangeLog
gcc/lto/lto-common.c