diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2015-12-09 03:15:05 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2015-12-09 02:15:05 +0000 |
commit | 6b9ac1796ec8eed79e8d5e4ef03a347a6c86a25c (patch) | |
tree | 77618157acd1764e5dd8967035809f5e54b46242 /gcc/lto/lto.c | |
parent | 1a161cd7a7545318c1ee29dfd2eb76ee6ee9f43e (diff) | |
download | gcc-6b9ac1796ec8eed79e8d5e4ef03a347a6c86a25c.zip gcc-6b9ac1796ec8eed79e8d5e4ef03a347a6c86a25c.tar.gz gcc-6b9ac1796ec8eed79e8d5e4ef03a347a6c86a25c.tar.bz2 |
re PR lto/61886 (LTO breaks fread with _FORTIFY_SOURCE=2)
PR ipa/61886
* lto-streamer.h (lto_symtab_merge_decls, lto_symtab_merge_symbols,
lto_symtab_prevailing_decl): MOve to lto-symtab.h.
* lto-streamer-out.c (DFS::DFS_write_tree_body): Check that
DECL_ABSTRACT_ORIGIN is not error_mark_node.
* lto-symtab.c: Include lto-symtab.h.
(lto_cgraph_replace_node): Do not merge profiles here.
(lto_symtab_merge_p): New function.
(lto_symtab_merge_decls_2): Honor lto_symtab_merge_p.
(lto_symtab_merge_symbols_1): Turn unmerged decls into transparent
aliases.
(lto_symtab_merge_symbols): Do not clear node->aux; we no longer use it.
(lto_symtab_prevailing_decl): Move to lto-symtab.h; rewrite.
* lto.c: Include lto-symtab.h
* lto-symtab.h: New.
From-SVN: r231438
Diffstat (limited to 'gcc/lto/lto.c')
-rw-r--r-- | gcc/lto/lto.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c index dcfa3c8..90712b4 100644 --- a/gcc/lto/lto.c +++ b/gcc/lto/lto.c @@ -49,6 +49,7 @@ along with GCC; see the file COPYING3. If not see #include "params.h" #include "ipa-utils.h" #include "gomp-constants.h" +#include "lto-symtab.h" /* Number of parallel tasks to run, -1 if we want to use GNU Make jobserver. */ |