diff options
author | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-11-23 17:59:53 +0000 |
---|---|---|
committer | pinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-11-23 17:59:53 +0000 |
commit | 0732b8097810f81ff404b8e6abb60b1eb37e55f6 (patch) | |
tree | 2512c35e52700e6cd44e06d41b69a7a129b511e1 | |
parent | 1441be6b64cb4fe3c058f1090dfb0f1d8a544b66 (diff) | |
download | gcc-0732b8097810f81ff404b8e6abb60b1eb37e55f6.tar.gz |
2006-11-23 Andrew Pinski <pinskia@gmail.com>
* predict.c (tree_estimate_probability): Check to make
sure current_loops is non null before calling flow_loops_dump.
2006-11-23 Andrew Pinski <pinskia@gmail.com>
* gcc.dg/tree-ssa/dump-1.c: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@119128 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/predict.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/tree-ssa/dump-1.c | 9 |
4 files changed, 19 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e0cfc6dcd69..cfd031d5386 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2006-11-23 Andrew Pinski <pinskia@gmail.com> + + * predict.c (tree_estimate_probability): Check to make + sure current_loops is non null before calling flow_loops_dump. + 2006-11-23 Bernd Schmidt <bernd.schmidt@analog.com> * var-tracking.c (emit_note_insn_var_location): Revert previous patch. diff --git a/gcc/predict.c b/gcc/predict.c index 5e905430273..03fba123052 100644 --- a/gcc/predict.c +++ b/gcc/predict.c @@ -1251,7 +1251,7 @@ tree_estimate_probability (void) basic_block bb; loop_optimizer_init (0); - if (dump_file && (dump_flags & TDF_DETAILS)) + if (current_loops && dump_file && (dump_flags & TDF_DETAILS)) flow_loops_dump (current_loops, dump_file, NULL, 0); add_noreturn_fake_exit_edges (); diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index cec51b1d796..3fc471e1c6d 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2006-11-23 Andrew Pinski <pinskia@gmail.com> + + * gcc.dg/tree-ssa/dump-1.c: New test. + 2006-11-23 David Ung <davidu@mips.com> * gcc.target/mips/mips.exp (dg-mips-options): Handle parsing of diff --git a/gcc/testsuite/gcc.dg/tree-ssa/dump-1.c b/gcc/testsuite/gcc.dg/tree-ssa/dump-1.c new file mode 100644 index 00000000000..382f3231b71 --- /dev/null +++ b/gcc/testsuite/gcc.dg/tree-ssa/dump-1.c @@ -0,0 +1,9 @@ +/* { dg-do compile } */ +/* { dg-options "-O1 -fdump-tree-profile-details" } */ + +int f(void) +{ + return 0; +} + +/* { dg-final { cleanup-tree-dump "profile" } } */ |