From 1b0e3802574b1bced2cc7304b2495213e8edc7d5 Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Wed, 20 Oct 2010 14:11:06 +0000 Subject: re PR lto/45667 (ICE: verify_stmts failed: type mismatch in address expression with -flto) 2010-10-20 Richard Guenther PR lto/45667 * lto-streamer-out.c (output_gimple_stmt): Fix typo. * tree-cfg.c (verify_gimple_call): Properly get the call fndecl. (verify_gimple_assign_single): Disable ADDR_EXPR type check when in LTO. * g++.dg/lto/20101020-1_0.h: New testcase. * g++.dg/lto/20101020-1_0.C: Likewise. * g++.dg/lto/20101020-1_1.C: Likewise. From-SVN: r165725 --- gcc/lto-streamer-out.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/lto-streamer-out.c') diff --git a/gcc/lto-streamer-out.c b/gcc/lto-streamer-out.c index 03b4f39..03150b7 100644 --- a/gcc/lto-streamer-out.c +++ b/gcc/lto-streamer-out.c @@ -1763,7 +1763,7 @@ output_gimple_stmt (struct output_block *ob, gimple stmt) if (op) { tree *basep = &op; - if (handled_component_p (*basep)) + while (handled_component_p (*basep)) basep = &TREE_OPERAND (*basep, 0); if (TREE_CODE (*basep) == VAR_DECL && !auto_var_in_fn_p (*basep, current_function_decl)) -- cgit v1.1