diff options
author | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-01-27 23:22:17 +0000 |
---|---|---|
committer | nathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-01-27 23:22:17 +0000 |
commit | ad8617cf3aae37463a6d61baa16b7b95a7520ead (patch) | |
tree | 2a2a67d83f3dfe20178bb96db57b38e585380170 /gcc/profile.c | |
parent | 2dd7852ce343c33ec54fe545c112612f88c84751 (diff) | |
download | gcc-ad8617cf3aae37463a6d61baa16b7b95a7520ead.tar.gz |
* Makefile.in (LIB2FUNCS_ST): Remove _gcov.
(LIBGCOV): New variable.
(libgcc.mk): Add LIBGCOV.
(LIBGCC_DEPS): Add libgcov.c.
(libgcov.a): New target.
(clean): Remove libgcov.a.
(install-libgcc): Do libgcov too.
(stage1-start, stage2-start, stage3-start, stage4-start): Deal
with libgcov.a.
* libgcc2.c (L_gcov): Move into ...
* libgcov.c: ... here. New file.
* mklibgcc.in: Add libgcov rules.
* gcc.c (LINK_COMMAND_SPEC): Add -lgcov when profiling.
* doc/invoke.texi (profile-arcs, test-coverage): Update and
clarify.
* profile.c (index_counts_file): Remove duplicate check for open file.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@61905 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/profile.c')
-rw-r--r-- | gcc/profile.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/gcc/profile.c b/gcc/profile.c index 5ee790a14df..de2d309b449 100644 --- a/gcc/profile.c +++ b/gcc/profile.c @@ -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; |