diff options
author | Jakub Jelinek <jakub@redhat.com> | 2008-01-30 00:21:24 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2008-01-30 00:21:24 +0100 |
commit | 2bafad93f704c2909c8b5988a0b0e98b57993617 (patch) | |
tree | e67112931bc0870ff4c9d06efcb44ad08a4da4f2 /gcc/cgraph.h | |
parent | 1033ffa8b312170efeeef1f3e4f58ced8075eaea (diff) | |
download | gcc-2bafad93f704c2909c8b5988a0b0e98b57993617.zip gcc-2bafad93f704c2909c8b5988a0b0e98b57993617.tar.gz gcc-2bafad93f704c2909c8b5988a0b0e98b57993617.tar.bz2 |
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
Diffstat (limited to 'gcc/cgraph.h')
-rw-r--r-- | gcc/cgraph.h | 4 |
1 files changed, 3 insertions, 1 deletions
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); |