diff options
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/config/darwin.h | 2 | ||||
-rw-r--r-- | gcc/config/darwin9.h | 2 |
3 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3e39a7408ec..b90d23de1a2 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2009-06-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> + + * 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 <green@moxielogic.com> * config/moxie/moxie.md: Define length attribute for all diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h index f8557531454..6fb1ec0c176 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 390f8e577fe..8c6f671b03b 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:\ |