OSDN Git Service

Merge from gomp-branch.
[pf3gnuchains/gcc-fork.git] / gcc / cfg.c
index 9644132..8f8593e 100644 (file)
--- a/gcc/cfg.c
+++ b/gcc/cfg.c
@@ -163,8 +163,11 @@ compact_blocks (void)
   int i;
   basic_block bb;
 
-  i = 0;
-  FOR_EACH_BB (bb)
+  BASIC_BLOCK (ENTRY_BLOCK) = ENTRY_BLOCK_PTR;
+  BASIC_BLOCK (EXIT_BLOCK) = EXIT_BLOCK_PTR;
+
+  i = NUM_FIXED_BLOCKS;
+  FOR_EACH_BB (bb) 
     {
       BASIC_BLOCK (i) = bb;
       bb->index = i;
@@ -926,7 +929,7 @@ scale_bbs_frequencies_int (basic_block *bbs, int nbbs, int num, int den)
   if (num > den)
     return;
   /* Assume that the users are producing the fraction from frequencies
-     that never grow far enought to risk arithmetic overflow.  */
+     that never grow far enough to risk arithmetic overflow.  */
   gcc_assert (num < 65536);
   for (i = 0; i < nbbs; i++)
     {