aboutsummaryrefslogtreecommitdiff
path: root/gcc/mode-switching.c
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@physics.uc.edu>2006-02-01 00:43:06 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2006-01-31 16:43:06 -0800
commit60ec1aa4bc17d19e0a89c9b369caa1cc5b30b0ea (patch)
tree3dfa3179ddffb449f4546d1e2a2415ee5605b3f7 /gcc/mode-switching.c
parentf685bbcba8cce886b55be9a3c74b645abdb47f89 (diff)
downloadgcc-60ec1aa4bc17d19e0a89c9b369caa1cc5b30b0ea.zip
gcc-60ec1aa4bc17d19e0a89c9b369caa1cc5b30b0ea.tar.gz
gcc-60ec1aa4bc17d19e0a89c9b369caa1cc5b30b0ea.tar.bz2
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
Diffstat (limited to 'gcc/mode-switching.c')
-rw-r--r--gcc/mode-switching.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/mode-switching.c b/gcc/mode-switching.c
index 9d7989f..c225d6a 100644
--- a/gcc/mode-switching.c
+++ b/gcc/mode-switching.c
@@ -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];