darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov when -fprofile-generate...
authorFrancois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Thu, 11 Jun 2009 19:57:04 +0000 (19:57 +0000)
committerFrançois-Xavier Coudert <fxcoudert@gcc.gnu.org>
Thu, 11 Jun 2009 19:57:04 +0000 (19:57 +0000)
* 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
gcc/config/darwin.h
gcc/config/darwin9.h

index 3e39a7408ec3bb6346a6d27f2462365abaaf41c2..b90d23de1a289beea8252734cdb494eb3b65e66a 100644 (file)
@@ -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
index f8557531454e9e6f576c63edc6bf63f339cd50a4..6fb1ec0c176ff793a43d818e64ae1eff968eefd2 100644 (file)
@@ -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:\
index 390f8e577fe32e5b7ac14f83066c15bec9d4bb21..8c6f671b03bfa491c89876031403ec76b7242678 100644 (file)
@@ -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:\