mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-23 09:40:54 +08:00
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> * 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. From-SVN: r119128
This commit is contained in:
parent
b33614eef2
commit
61968738d5
@ -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.
|
||||
|
@ -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 ();
|
||||
|
@ -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
|
||||
|
9
gcc/testsuite/gcc.dg/tree-ssa/dump-1.c
Normal file
9
gcc/testsuite/gcc.dg/tree-ssa/dump-1.c
Normal file
@ -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" } } */
|
Loading…
x
Reference in New Issue
Block a user