summaryrefslogtreecommitdiff
path: root/gcc/cgraphunit.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2006-10-09 16:10:38 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2006-10-09 16:10:38 +0000
commitbd09cd3e0a1b43658bb0d2169721ff2b3e95ea0e (patch)
treeb925af300345e743bbc19d811c98bee55425729c /gcc/cgraphunit.c
parentf406e07ef5dee51738e05a3546ec5af3dd0974c9 (diff)
downloadgcc-bd09cd3e0a1b43658bb0d2169721ff2b3e95ea0e.tar.gz
2006-10-09 Richard Guenther <rguenther@suse.de>
PR middle-end/29254 * cgraphunit.c (verify_cgraph_node): Bail out on earlier errors. * gcc.dg/pr29254.c: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@117577 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r--gcc/cgraphunit.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c
index 94a4044d2fe..6b3cab01df5 100644
--- a/gcc/cgraphunit.c
+++ b/gcc/cgraphunit.c
@@ -694,6 +694,9 @@ verify_cgraph_node (struct cgraph_node *node)
block_stmt_iterator bsi;
bool error_found = false;
+ if (errorcount || sorrycount)
+ return;
+
timevar_push (TV_CGRAPH_VERIFY);
for (e = node->callees; e; e = e->next_callee)
if (e->aux)