diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-06-07 22:48:32 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-06-07 22:48:32 +0000 |
commit | 131d1d8392e1bf75dbf703730a19c210919480ee (patch) | |
tree | 32dbdfd50bfbb30beb941f9436d8dfc989fc4162 /gcc/df-problems.c | |
parent | cbae140734cc1fb1175d2289051e246ec83d6d1a (diff) | |
download | gcc-131d1d8392e1bf75dbf703730a19c210919480ee.tar.gz |
PR middle-end/44454
(df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
are allocated.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160410 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/df-problems.c')
-rw-r--r-- | gcc/df-problems.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/gcc/df-problems.c b/gcc/df-problems.c index f11b2518079..05d41b56ed0 100644 --- a/gcc/df-problems.c +++ b/gcc/df-problems.c @@ -1120,8 +1120,11 @@ df_lr_top_dump (basic_block bb, FILE *file) if (df_lr->problem_data) { problem_data = (struct df_lr_problem_data *)df_lr->problem_data; - fprintf (file, ";; old in \t"); - df_print_regset (file, &problem_data->in[bb->index]); + if (problem_data->in) + { + fprintf (file, ";; old in \t"); + df_print_regset (file, &problem_data->in[bb->index]); + } } fprintf (file, ";; lr use \t"); df_print_regset (file, &bb_info->use); @@ -1145,8 +1148,11 @@ df_lr_bottom_dump (basic_block bb, FILE *file) if (df_lr->problem_data) { problem_data = (struct df_lr_problem_data *)df_lr->problem_data; - fprintf (file, ";; old out \t"); - df_print_regset (file, &problem_data->out[bb->index]); + if (problem_data->out) + { + fprintf (file, ";; old out \t"); + df_print_regset (file, &problem_data->out[bb->index]); + } } } |