From b5a6e96fa0d2c989397f7d993812effdf8876796 Mon Sep 17 00:00:00 2001 From: Francois-Xavier Coudert Date: Thu, 11 Jun 2009 19:57:04 +0000 Subject: [PATCH] darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov when -fprofile-generate* was passed. * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov when -fprofile-generate* was passed. * config/darwin9.h (LINK_COMMAND_SPEC): Likewise. From-SVN: r148394 --- gcc/ChangeLog | 6 ++++++ gcc/config/darwin.h | 2 +- gcc/config/darwin9.h | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3e39a7408ec3..b90d23de1a28 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2009-06-11 Francois-Xavier Coudert + + * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov + when -fprofile-generate* was passed. + * config/darwin9.h (LINK_COMMAND_SPEC): Likewise. + 2009-06-11 Anthony Green * config/moxie/moxie.md: Define length attribute for all diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h index f8557531454e..6fb1ec0c176f 100644 --- a/gcc/config/darwin.h +++ b/gcc/config/darwin.h @@ -273,7 +273,7 @@ extern GTY(()) int darwin_ms_struct; %{o*}%{!o:-o a.out} \ %{!A:%{!nostdlib:%{!nostartfiles:%S}}} \ %{L*} %{fopenmp:%:include(libgomp.spec)%(link_gomp)} \ - %(link_libgcc) %o %{fprofile-arcs|fprofile-generate|coverage:-lgcov} \ + %(link_libgcc) %o %{fprofile-arcs|fprofile-generate*|coverage:-lgcov} \ %{!nostdlib:%{!nodefaultlibs:%(link_ssp) %G %L}} \ %{!A:%{!nostdlib:%{!nostartfiles:%E}}} %{T*} %{F*} }}}}}}}\n\ %{!fdump=*:%{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S:\ diff --git a/gcc/config/darwin9.h b/gcc/config/darwin9.h index 390f8e577fe3..8c6f671b03bf 100644 --- a/gcc/config/darwin9.h +++ b/gcc/config/darwin9.h @@ -32,7 +32,7 @@ along with GCC; see the file COPYING3. If not see %{o*}%{!o:-o a.out} \ %{!A:%{!nostdlib:%{!nostartfiles:%S}}} \ %{L*} %{fopenmp:%:include(libgomp.spec)%(link_gomp)} \ - %(link_libgcc) %o %{fprofile-arcs|fprofile-generate|coverage:-lgcov} \ + %(link_libgcc) %o %{fprofile-arcs|fprofile-generate*|coverage:-lgcov} \ %{!nostdlib:%{!nodefaultlibs:%(link_ssp) %G %L}} \ %{!A:%{!nostdlib:%{!nostartfiles:%E}}} %{T*} %{F*} }}}}}}}\n\ %{!fdump=*:%{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S:\ -- 2.47.2