From 06fc4e41862913b5e556508bdd762cb2918fa15e Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Fri, 26 Dec 2003 19:13:35 +0000 Subject: [PATCH] darwin.h (LINK_COMMAND_SPEC): Arrange -fprofile-generate to imply -lgcov. 2003-12-25 Andrew Pinski * config/darwin.h (LINK_COMMAND_SPEC): Arrange -fprofile-generate to imply -lgcov. From-SVN: r75038 --- gcc/ChangeLog | 5 +++++ gcc/config/darwin.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 838a16e..5898c3c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-12-26 Andrew Pinski + + * config/darwin.h (LINK_COMMAND_SPEC): Arrange + -fprofile-generate to imply -lgcov. + 2003-12-26 Kazu Hirata * config/h8300/h8300.md (ldm_h8300s_2_normal): Use HImode for diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h index 0099ff2..3470f7b 100644 --- a/gcc/config/darwin.h +++ b/gcc/config/darwin.h @@ -192,7 +192,7 @@ Boston, MA 02111-1307, USA. */ %{!Zdynamiclib:%{A} %{e*} %{m} %{N} %{n} %{r} %{u*} %{x} %{z}} \ %{@:-o %f%u.out}%{!@:%{o*}%{!o:-o a.out}} \ %{!Zdynamiclib:%{!A:%{!nostdlib:%{!nostartfiles:%S}}}} \ - %{L*} %(link_libgcc) %o %{fprofile-arcs:-lgcov} \ + %{L*} %(link_libgcc) %o %{fprofile-arcs|fprofile-generate:-lgcov} \ %{!nostdlib:%{!nodefaultlibs:%G %L}} \ %{!A:%{!nostdlib:%{!nostartfiles:%E}}} %{T*} %{F*} \ %{!--help:%{!no-c++filt|c++filt:| c++filt3 }} }}}}}}}}" -- 2.7.4