mode-switching.c (optimize_mode_switching): Fix size allocated for bb_info[n_entities].

2006-01-31  Andrew Pinski  <pinskia@physics.uc.edu>

        * mode-switching.c (optimize_mode_switching): Fix size
        allocated for bb_info[n_entities].

From-SVN: r110464
This commit is contained in:
Andrew Pinski 2006-02-01 00:43:06 +00:00 committed by Andrew Pinski
parent f685bbcba8
commit 60ec1aa4bc
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2006-01-31 Andrew Pinski <pinskia@physics.uc.edu>
* mode-switching.c (optimize_mode_switching): Fix size
allocated for bb_info[n_entities].
2006-01-31 Andrew Pinski <pinskia@physics.uc.edu>
* gcc.c (main): Correct type that is allocated for

View File

@ -415,7 +415,7 @@ optimize_mode_switching (FILE *file)
entry_exit_extra = 3;
#endif
bb_info[n_entities]
= XCNEWVEC (struct bb_info, last_basic_block);
= XCNEWVEC (struct bb_info, last_basic_block + entry_exit_extra);
entity_map[n_entities++] = e;
if (num_modes[e] > max_num_modes)
max_num_modes = num_modes[e];