diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2003-01-27 23:22:17 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@gcc.gnu.org> | 2003-01-27 23:22:17 +0000 |
commit | 23af32e6ea2031cb4bffc1edc8d0368d5e5dfada (patch) | |
tree | 2a2a67d83f3dfe20178bb96db57b38e585380170 /gcc/profile.c | |
parent | acabc2201e43691ffb41b2cee2de1e628dfce9f4 (diff) | |
download | gcc-23af32e6ea2031cb4bffc1edc8d0368d5e5dfada.zip gcc-23af32e6ea2031cb4bffc1edc8d0368d5e5dfada.tar.gz gcc-23af32e6ea2031cb4bffc1edc8d0368d5e5dfada.tar.bz2 |
Makefile.in (LIB2FUNCS_ST): Remove _gcov.
* 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.
From-SVN: r61905
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 5ee790a..de2d309 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; |