From: Andrew Pinski Date: Fri, 26 Dec 2003 19:13:35 +0000 (+0000) Subject: darwin.h (LINK_COMMAND_SPEC): Arrange -fprofile-generate to imply -lgcov. X-Git-Tag: releases/gcc-3.4.0~1425 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=06fc4e41862913b5e556508bdd762cb2918fa15e;p=thirdparty%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 838a16e07947..5898c3cef286 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 0099ff238819..3470f7b8ca17 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 }} }}}}}}}}"