summaryrefslogtreecommitdiff
path: root/gcc/mode-switching.c
diff options
context:
space:
mode:
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2006-02-01 00:43:06 +0000
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>2006-02-01 00:43:06 +0000
commit613768ea32fcb8305a6be574aa5966f0b54ef668 (patch)
tree3dfa3179ddffb449f4546d1e2a2415ee5605b3f7 /gcc/mode-switching.c
parenta733d9628b1c3df3ed6ed952b5b1d3421bc20bf6 (diff)
downloadgcc-613768ea32fcb8305a6be574aa5966f0b54ef668.tar.gz
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: svn+ssh://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.c2
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];