From 2bafad93f704c2909c8b5988a0b0e98b57993617 Mon Sep 17 00:00:00 2001 From: Jakub Jelinek Date: Wed, 30 Jan 2008 00:21:24 +0100 Subject: re PR middle-end/34969 (ICE with -fipa-cp -ffast-math) PR middle-end/34969 * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype. * cgraph.c (cgraph_update_edges_for_call_stmt): New function. * tree-inline.c (fold_marked_statements): Call cgraph_update_edges_for_call_stmt if folding a call statement. * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for debug_generic_stmt calls, reset it back afterwards. * gcc.dg/pr34969.c: New test. From-SVN: r131946 --- gcc/cgraph.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gcc/cgraph.h') diff --git a/gcc/cgraph.h b/gcc/cgraph.h index baed1a6..89ffeb6 100644 --- a/gcc/cgraph.h +++ b/gcc/cgraph.h @@ -1,5 +1,6 @@ /* Callgraph handling code. - Copyright (C) 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. + Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 + Free Software Foundation, Inc. Contributed by Jan Hubicka This file is part of GCC. @@ -303,6 +304,7 @@ struct cgraph_node *cgraph_node (tree); struct cgraph_node *cgraph_node_for_asm (tree asmname); struct cgraph_edge *cgraph_edge (struct cgraph_node *, tree); void cgraph_set_call_stmt (struct cgraph_edge *, tree); +void cgraph_update_edges_for_call_stmt (tree, tree, tree); struct cgraph_local_info *cgraph_local_info (tree); struct cgraph_global_info *cgraph_global_info (tree); struct cgraph_rtl_info *cgraph_rtl_info (tree); -- cgit v1.1