From bdb69beee91adebad0d3b6b0d3dd0f3810dbe7a2 Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Fri, 4 Jan 2008 15:56:41 +0000 Subject: re PR tree-optimization/34029 (internal compiler error: verify_stmts failed) 2008-01-04 Richard Guenther PR middle-end/34029 * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs for verifying purposes if they are is_gimple_min_invariant. * gcc.c-torture/compile/pr34029-1.c: New testcase. * gcc.c-torture/compile/pr34029-2.c: Likewise. From-SVN: r131325 --- gcc/tree-cfg.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gcc/tree-cfg.c') diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c index 1606497..a8cb627 100644 --- a/gcc/tree-cfg.c +++ b/gcc/tree-cfg.c @@ -3218,6 +3218,11 @@ verify_expr (tree *tp, int *walk_subtrees, void *data ATTRIBUTE_UNUSED) error ("address taken, but ADDRESSABLE bit not set"); return x; } + + /* Stop recursing and verifying invariant ADDR_EXPRs, they tend + to become arbitrary complicated. */ + if (is_gimple_min_invariant (t)) + *walk_subtrees = 0; break; } -- cgit v1.1