From 23af32e6ea2031cb4bffc1edc8d0368d5e5dfada Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Mon, 27 Jan 2003 23:22:17 +0000 Subject: 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 --- gcc/profile.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'gcc/profile.c') 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; -- cgit v1.1