diff options
| author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-08-27 16:02:29 +0000 |
|---|---|---|
| committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-08-27 16:02:29 +0000 |
| commit | ea83a6ee2b6a69edf91c2250caf8a8bd412aa144 (patch) | |
| tree | 9ae27fa9332f49a929b53fb023dccddef72a184e | |
| parent | 10b1bedbd12e9bd282e4a036c34e894c55796bbb (diff) | |
| download | ppe42-gcc-ea83a6ee2b6a69edf91c2250caf8a8bd412aa144.tar.gz ppe42-gcc-ea83a6ee2b6a69edf91c2250caf8a8bd412aa144.zip | |
* libgcc2.c (__bb_exit_func): Properly write the summarized statistics.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56603 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 4 | ||||
| -rw-r--r-- | gcc/libgcc2.c | 6 |
2 files changed, 7 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4d0a4eb2ecd..c4cabb97363 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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. diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c index c88b24f2bcf..ac2fb6a4281 100644 --- a/gcc/libgcc2.c +++ b/gcc/libgcc2.c @@ -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)) |

