From: Richard Guenther Date: Mon, 9 Oct 2006 16:10:38 +0000 (+0000) Subject: re PR middle-end/29254 (verify_cgraph_node failed (inlined_to pointer is set but... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5771bd91eccb16e766ed13f533bdb4695c705da7;p=gcc.git re PR middle-end/29254 (verify_cgraph_node failed (inlined_to pointer is set but no predecessors found)) 2006-10-09 Richard Guenther PR middle-end/29254 * cgraphunit.c (verify_cgraph_node): Bail out on earlier errors. * gcc.dg/pr29254.c: New testcase. From-SVN: r117577 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ac05e546418..3ac5ae12b8a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2006-10-09 Richard Guenther + + PR middle-end/29254 + * cgraphunit.c (verify_cgraph_node): Bail out on earlier + errors. + 2006-10-09 Steve Ellcey PR target/27880 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) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 6d463b5f7ce..c477d679d08 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2006-10-09 Richard Guenther + + PR middle-end/29254 + * gcc.dg/pr29254.c: New testcase. + 2006-10-08 Erik Edelmann Paul Thomas diff --git a/gcc/testsuite/gcc.dg/pr29254.c b/gcc/testsuite/gcc.dg/pr29254.c new file mode 100644 index 00000000000..6259089d4fb --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr29254.c @@ -0,0 +1,22 @@ +/* { dg-do compile } */ +/* { dg-options "-O3 -Werror" } */ +/* { dg-warning "warnings being treated as errors" "" {target "*-*-*"} 0 } */ + +list_compare (int * list1) +{ + if (list1) + value_compare (); +} + +func1 (int * f){} + +value_compare (int * a) +{ + if (a) + list_compare (a); +} + +func2 (const int * fb) +{ + func1 ((int *) fb); /* { dg-warning "discards qualifiers" } */ +}