aboutsummaryrefslogtreecommitdiff
path: root/gcc/cgraph.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/cgraph.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/cgraph.c')
-rw-r--r--gcc/cgraph.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cgraph.c b/gcc/cgraph.c
index 9ebe905..797d58a 100644
--- a/gcc/cgraph.c
+++ b/gcc/cgraph.c
@@ -2291,6 +2291,8 @@ verify_edge_corresponds_to_fndecl (struct cgraph_edge *e, tree decl)
if (!decl || e->callee->global.inlined_to)
return false;
+ if (cgraph_state == CGRAPH_LTO_STREAMING)
+ return false;
node = cgraph_get_node (decl);
/* We do not know if a node from a different partition is an alias or what it