From f20ca7258739d74b12cf381293b10f72125732c5 Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Tue, 12 Apr 2011 10:44:15 +0000 Subject: re PR tree-optimization/46076 (constant propagation and compile-time math no longer happening versus 4.4 and 4.5) 2011-04-12 Richard Guenther PR tree-optimization/46076 * gimple.h (struct gimple_statement_call): Add fntype field. (gimple_call_fntype): Adjust. (gimple_call_set_fntype): New function. * gimple.c (gimple_build_call_1): Set the call function type. * gimplify.c (gimplify_call_expr): Preserve the function type the frontend used for the call. (gimplify_modify_expr): Likewise. * lto-streamer-in.c (input_gimple_stmt): Input the call stmts function type. * lto-streamer-out.c (output_gimple_stmt): Output the call stmts function type. * tree-ssa.c (useless_type_conversion_p): Function pointer conversions are useless. * gcc.dg/tree-ssa/pr46076.c: Un-XFAIL. From-SVN: r172310 --- gcc/lto-streamer-out.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc/lto-streamer-out.c') diff --git a/gcc/lto-streamer-out.c b/gcc/lto-streamer-out.c index 787f4f2..a29cdd5 100644 --- a/gcc/lto-streamer-out.c +++ b/gcc/lto-streamer-out.c @@ -1759,6 +1759,8 @@ output_gimple_stmt (struct output_block *ob, gimple stmt) } lto_output_tree_ref (ob, op); } + if (is_gimple_call (stmt)) + lto_output_tree_ref (ob, gimple_call_fntype (stmt)); break; case GIMPLE_NOP: -- cgit v1.1