diff options
author | Jakub Jelinek <jakub@redhat.com> | 2005-08-20 18:03:58 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2005-08-20 18:03:58 +0200 |
commit | 5e34206b7e8b20fc6a1cf420076b6461c40ab4da (patch) | |
tree | a4df578ab0cd10699ab3f63bdf10bd3ac48643fc /gcc/testsuite/gcc.dg/20050811-2.c | |
parent | b00d752c95b349b39530e12648f5a79b3e8c0956 (diff) | |
download | gcc-5e34206b7e8b20fc6a1cf420076b6461c40ab4da.zip gcc-5e34206b7e8b20fc6a1cf420076b6461c40ab4da.tar.gz gcc-5e34206b7e8b20fc6a1cf420076b6461c40ab4da.tar.bz2 |
tree-pass.h (TDF_GRAPH): Define.
* tree-pass.h (TDF_GRAPH): Define.
* tree-dump.c (dump_options): Don't set TDF_GRAPH in "all".
* passes.c (finish_optimization_passes): Only call
finish_graph_dump_file if TDF_GRAPH is set.
(execute_one_pass): Only call clean_graph_dump_file if dump_file !=
NULL. Set TDF_GRAPH bit.
(execute_todo): Call print_rtl_graph_with_bb if TDF_GRAPH is set.
* gcc.dg/20050811-1.c: New test.
* gcc.dg/20050811-2.c: New test.
From-SVN: r103304
Diffstat (limited to 'gcc/testsuite/gcc.dg/20050811-2.c')
-rw-r--r-- | gcc/testsuite/gcc.dg/20050811-2.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/20050811-2.c b/gcc/testsuite/gcc.dg/20050811-2.c new file mode 100644 index 0000000..2f1d48b --- /dev/null +++ b/gcc/testsuite/gcc.dg/20050811-2.c @@ -0,0 +1,20 @@ +/* Test whether -dov doesn't crash. */ +/* { dg-do compile } */ +/* { dg-options "-O2 -dov" } */ + +int foo (void) +{ + return 6; +} + +int bar (int x) +{ + if (x < 0) + return foo () + 8; + else if (x > 0) + return 2 * foo (); + else + return foo (); +} + +// { dg-final { cleanup-rtl-dump "postreload*" } } |