aboutsummaryrefslogtreecommitdiff
path: root/gcc/symtab.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2013-06-12 16:41:12 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2013-06-12 14:41:12 +0000
commitca0f62a888b8dab2761501f7b5452ad354e19c00 (patch)
treed78ee153e238e22c85b9ff00c282bd8ba1090418 /gcc/symtab.c
parent5c3decfd177102539ce87838154f30d01e30a41b (diff)
downloadgcc-ca0f62a888b8dab2761501f7b5452ad354e19c00.zip
gcc-ca0f62a888b8dab2761501f7b5452ad354e19c00.tar.gz
gcc-ca0f62a888b8dab2761501f7b5452ad354e19c00.tar.bz2
cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about decl has when in streaming stage.
* cgraph.c (verify_edge_corresponds_to_fndecl): Be lax about decl has when in streaming stage. * lto-symtab.c (lto_symtab_merge_symbols): Likewise. * cgraph.h (cgraph_state): Add CGRAPH_LTO_STREAMING. * lto.c (read_cgraph_and_symbols): Set cgraph into streaming state. From-SVN: r200018
Diffstat (limited to 'gcc/symtab.c')
-rw-r--r--gcc/symtab.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/gcc/symtab.c b/gcc/symtab.c
index 0ce44a9..c9f32d5 100644
--- a/gcc/symtab.c
+++ b/gcc/symtab.c
@@ -647,11 +647,14 @@ verify_symtab_base (symtab_node node)
error_found = true;
}
- hashed_node = symtab_get_node (node->symbol.decl);
- if (!hashed_node)
+ if (cgraph_state != CGRAPH_LTO_STREAMING)
{
- error ("node not found in symtab decl hashtable");
- error_found = true;
+ hashed_node = symtab_get_node (node->symbol.decl);
+ if (!hashed_node)
+ {
+ error ("node not found in symtab decl hashtable");
+ error_found = true;
+ }
}
if (assembler_name_hash)
{