* libgcc2.c (__bb_exit_func): Properly write the summarized statistics.
authorJan Hubicka <jh@suse.cz>
Tue, 27 Aug 2002 16:02:29 +0000 (18:02 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 27 Aug 2002 16:02:29 +0000 (16:02 +0000)
From-SVN: r56603

gcc/ChangeLog
gcc/libgcc2.c

index 4d0a4eb..c4cabb9 100644 (file)
@@ -1,3 +1,7 @@
+Tue Aug 27 18:01:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
+
+       * libgcc2.c (__bb_exit_func): Properly write the summarized statistics.
+
 Tue Aug 27 18:00:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
 
        * i386.c (classify_argument): Properly compute word size of the analyzed object.
index c88b24f..ac2fb6a 100644 (file)
@@ -1514,11 +1514,11 @@ __bb_exit_func (void)
        
        if (fseek (da_file, 4 * 3, SEEK_SET)
            /* number of instrumented arcs.  */
-           || __write_long (program_arcs, da_file, 4)
+           || __write_long (merged_arcs, da_file, 4)
            /* sum of counters.  */
-           || __write_gcov_type (program_sum, da_file, 8)
+           || __write_gcov_type (merged_sum, da_file, 8)
            /* maximal counter.  */
-           || __write_gcov_type (program_max, da_file, 8))
+           || __write_gcov_type (merged_max, da_file, 8))
          fprintf (stderr, "arc profiling: Error updating program header %s.\n",
                   ptr->filename);
        if (fclose (da_file))