diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-01-29 23:21:24 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-01-29 23:21:24 +0000 |
commit | 117ef3d76b737e937778304657d91df31d5dfbdb (patch) | |
tree | e67112931bc0870ff4c9d06efcb44ad08a4da4f2 /gcc/testsuite/gcc.dg | |
parent | c55e294338dfc6dfeac5b73556c763f9e47cab35 (diff) | |
download | gcc-117ef3d76b737e937778304657d91df31d5dfbdb.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@131946 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/testsuite/gcc.dg')
-rw-r--r-- | gcc/testsuite/gcc.dg/pr34969.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr34969.c b/gcc/testsuite/gcc.dg/pr34969.c new file mode 100644 index 00000000000..02f7dd1aaac --- /dev/null +++ b/gcc/testsuite/gcc.dg/pr34969.c @@ -0,0 +1,15 @@ +/* PR middle-end/34969 */ +/* { dg-do compile } */ +/* { dg-options "-O -fipa-cp -ffast-math" } */ + +double +foo (double x) +{ + return x * x; +} + +double +bar (void) +{ + return foo (0); +} |