re PR middle-end/29254 (verify_cgraph_node failed (inlined_to pointer is set but no predecessors found))

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.

From-SVN: r117577
This commit is contained in:
Richard Guenther 2006-10-09 16:10:38 +00:00 committed by Richard Biener
parent e64f5acfaf
commit 5771bd91ec
4 changed files with 36 additions and 0 deletions

View file

@ -1,3 +1,9 @@
2006-10-09 Richard Guenther <rguenther@suse.de>
PR middle-end/29254
* cgraphunit.c (verify_cgraph_node): Bail out on earlier
errors.
2006-10-09 Steve Ellcey <sje@cup.hp.com>
PR target/27880

View file

@ -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)

View file

@ -1,3 +1,8 @@
2006-10-09 Richard Guenther <rguenther@suse.de>
PR middle-end/29254
* gcc.dg/pr29254.c: New testcase.
2006-10-08 Erik Edelmann <edelmann@gcc.gnu.org>
Paul Thomas <pault@gcc.gnu.org>

View file

@ -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" } */
}