diff options
author | Andrew Pinski <pinskia@physics.uc.edu> | 2006-02-01 00:43:06 +0000 |
---|---|---|
committer | Andrew Pinski <pinskia@physics.uc.edu> | 2006-02-01 00:43:06 +0000 |
commit | 5da6a96ad07583092bf4ddde55c821749cf35f6b (patch) | |
tree | 3dfa3179ddffb449f4546d1e2a2415ee5605b3f7 /gcc/mode-switching.c | |
parent | b919fb359e737db043ac4ae317ba0f2dd575ccd9 (diff) |
2006-01-31 Andrew Pinski <pinskia@physics.uc.edu>
* mode-switching.c (optimize_mode_switching): Fix size
allocated for bb_info[n_entities].
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@110464 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/mode-switching.c')
-rw-r--r-- | gcc/mode-switching.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/mode-switching.c b/gcc/mode-switching.c index 9d7989f4fc9..c225d6a9647 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]; |