]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
2006-01-31 Andrew Pinski <pinskia@physics.uc.edu>
authorpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 1 Feb 2006 00:43:06 +0000 (00:43 +0000)
committerpinskia <pinskia@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 1 Feb 2006 00:43:06 +0000 (00:43 +0000)
        * 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

gcc/ChangeLog
gcc/mode-switching.c

index fe0fc87fbc59f655cc871c600e29c5d9bb5c6964..bea45a1ff887eb2cac43c6b8c1cd0db00ffebd7f 100644 (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
index 9d7989f4fc9a61d42336d7b2f9627961c3149215..c225d6a964749beff9f1ed4bf3124aa605c72f36 100644 (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];