From: Francois-Xavier Coudert Date: Thu, 11 Jun 2009 19:57:04 +0000 (+0000) Subject: darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov when -fprofile-generate... X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b5a6e96fa0d2c989397f7d993812effdf8876796;p=platform%2Fupstream%2Fgcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3e39a74..b90d23d 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 f855753..6fb1ec0 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 390f8e5..8c6f671 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:\