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/gcc.c | |
parent | acabc2201e43691ffb41b2cee2de1e628dfce9f4 (diff) | |
download | gcc-23af32e6ea2031cb4bffc1edc8d0368d5e5dfada.tar.gz |
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/gcc.c')
-rw-r--r-- | gcc/gcc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c index ca3a51337f6..3a36d3517b1 100644 --- a/gcc/gcc.c +++ b/gcc/gcc.c @@ -676,7 +676,8 @@ proper position among the other output files. */ %{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S:\ %(linker) %l %X %{o*} %{A} %{d} %{e*} %{m} %{N} %{n} %{r} %{s} %{t}\ %{u*} %{x} %{z} %{Z} %{!A:%{!nostdlib:%{!nostartfiles:%S}}}\ - %{static:} %{L*} %(link_libgcc) %o %{!nostdlib:%{!nodefaultlibs:%(link_gcc_c_sequence)}}\ + %{static:} %{L*} %(link_libgcc) %o %{fprofile-arcs:-lgcov}\ + %{!nostdlib:%{!nodefaultlibs:%(link_gcc_c_sequence)}}\ %{!A:%{!nostdlib:%{!nostartfiles:%E}}} %{T*} }}}}}}" #endif |