OSDN Git Service

2003-01-30 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
[pf3gnuchains/gcc-fork.git] / gcc / profile.c
index 2e70598..de2d309 100644 (file)
@@ -289,16 +289,12 @@ index_counts_file ()
   unsigned magic, version, ix, checksum;
   long *summary;
 
-  if (!da_file)
-    return 0;
-  counts_file_index = htab_create (10, htab_counts_index_hash, htab_counts_index_eq, htab_counts_index_del);
-
   /* No .da file, no data.  */
   if (!da_file)
     return 0;
+  counts_file_index = htab_create (10, htab_counts_index_hash, htab_counts_index_eq, htab_counts_index_del);
 
   /* Now index all profile sections.  */
-
   rewind (da_file);
 
   summary = NULL;
@@ -948,7 +944,7 @@ branch_prob ()
       /* Add fake edges from entry block to the call insns that may return
         twice.  The CFG is not quite correct then, as call insn plays more
         role of CODE_LABEL, but for our purposes, everything should be OK,
-        as we never insert code to the beggining of basic block.  */
+        as we never insert code to the beginning of basic block.  */
       for (insn = bb->head; insn != NEXT_INSN (bb->end);
           insn = NEXT_INSN (insn))
        {
@@ -1674,7 +1670,7 @@ create_profiler ()
   /* Build structure.  */
   assemble_variable (structure, 0, 0, 0);
 
-  /* Build the constructor function to invoke __gcov_init. */
+  /* Build the constructor function to invoke __gcov_init.  */
   ctor_name = concat (IDENTIFIER_POINTER (get_file_function_name ('I')),
                      "_GCOV", NULL);
   ctor = build_decl (FUNCTION_DECL, get_identifier (ctor_name),