aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorAndrew Pinski <pinskia@physics.uc.edu>2006-03-14 01:19:16 +0000
committerAndrew Pinski <pinskia@gcc.gnu.org>2006-03-13 17:19:16 -0800
commit0e512a4f6b553209c6afb01965a7d02e4a2f8921 (patch)
tree581cbae4b8d0760feac78fc12e58c6a37096e8e6 /gcc
parent716019c0ad646715c24467a80bf0595a1a2ad7cb (diff)
downloadgcc-0e512a4f6b553209c6afb01965a7d02e4a2f8921.zip
gcc-0e512a4f6b553209c6afb01965a7d02e4a2f8921.tar.gz
gcc-0e512a4f6b553209c6afb01965a7d02e4a2f8921.tar.bz2
re PR target/26657 (With -fopenmp, gcc does not link with -lgomp)
2006-03-14 Andrew Pinski <pinskia@physics.uc.edu> PR target/26657 * config/darwin.h (LINK_COMMAND_SPEC): Handle -fopenmp. From-SVN: r112041
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/darwin.h3
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index d2c7e51..da4cb3d 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2006-03-14 Andrew Pinski <pinskia@physics.uc.edu>
+
+ PR target/26657
+ * config/darwin.h (LINK_COMMAND_SPEC): Handle -fopenmp.
+
2006-03-14 Joseph S. Myers <joseph@codesourcery.com>
* config/rs6000/rs6000.opt (mdlmzb): New option.
diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h
index cd044b7..a2c276d 100644
--- a/gcc/config/darwin.h
+++ b/gcc/config/darwin.h
@@ -206,7 +206,8 @@ Boston, MA 02110-1301, 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|fprofile-generate|coverage:-lgcov} \
+ %{L*} %{fopenmp:%:include(libgomp.spec)%(link_gomp)} \
+ %(link_libgcc) %o %{fprofile-arcs|fprofile-generate|coverage:-lgcov} \
%{!nostdlib:%{!nodefaultlibs:%(link_ssp) %G %L}} \
%{!A:%{!nostdlib:%{!nostartfiles:%E}}} %{T*} %{F*} }}}}}}}}"