aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorIain Sandoe <iains@gcc.gnu.org>2011-12-03 18:03:45 +0000
committerIain Sandoe <iains@gcc.gnu.org>2011-12-03 18:03:45 +0000
commit99b375d0b9802b28f3250ef3d2af6ac56d6d4c7c (patch)
tree934aedebf021372d7e8ce4d6a9d76b4f4fb5864e /gcc
parent50ada590dc4fc394c2be14c791c7bae6b46ba337 (diff)
downloadgcc-99b375d0b9802b28f3250ef3d2af6ac56d6d4c7c.zip
gcc-99b375d0b9802b28f3250ef3d2af6ac56d6d4c7c.tar.gz
gcc-99b375d0b9802b28f3250ef3d2af6ac56d6d4c7c.tar.bz2
darwin.h (STARTFILE_SPEC): Do not use -lbundle1.o when Darwin >= 10.
gcc: * config/darwin.h (STARTFILE_SPEC): Do not use -lbundle1.o when Darwin >= 10. (DARWIN_DYLIB1_SPEC): Do not use -ldylib1.10.5.o when Darwin >= 10. (DARWIN_CRT1_SPEC): Use -lcrt1.10.6.o when Darwin >= 10. From-SVN: r181974
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/config/darwin.h9
2 files changed, 13 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 82031fc..08b0440 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2011-12-03 Iain Sandoe <iains@gcc.gnu.org>
+
+ * config/darwin.h (STARTFILE_SPEC): Do not use -lbundle1.o when
+ Darwin >= 10.
+ (DARWIN_DYLIB1_SPEC): Do not use -ldylib1.10.5.o when Darwin >= 10.
+ (DARWIN_CRT1_SPEC): Use -lcrt1.10.6.o when Darwin >= 10.
+
2011-12-03 Jakub Jelinek <jakub@redhat.com>
* fold-const.c (fold_unary_loc): Fold VEC_UNPACK_LO_EXPR,
diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h
index fd45904..70ac80c 100644
--- a/gcc/config/darwin.h
+++ b/gcc/config/darwin.h
@@ -348,7 +348,9 @@ extern GTY(()) int darwin_ms_struct;
#undef STARTFILE_SPEC
#define STARTFILE_SPEC \
"%{Zdynamiclib: %(darwin_dylib1) %{fgnu-tm: -lcrttms.o}} \
- %{!Zdynamiclib:%{Zbundle:%{!static:-lbundle1.o %{fgnu-tm: -lcrttms.o}}} \
+ %{!Zdynamiclib:%{Zbundle:%{!static: \
+ %:version-compare(< 10.6 mmacosx-version-min= -lbundle1.o) \
+ %{fgnu-tm: -lcrttms.o}}} \
%{!Zbundle:%{pg:%{static:-lgcrt0.o} \
%{!static:%{object:-lgcrt0.o} \
%{!object:%{preload:-lgcrt0.o} \
@@ -370,11 +372,12 @@ extern GTY(()) int darwin_ms_struct;
#define DARWIN_DYLIB1_SPEC \
"%:version-compare(!> 10.5 mmacosx-version-min= -ldylib1.o) \
- %:version-compare(>= 10.5 mmacosx-version-min= -ldylib1.10.5.o)"
+ %:version-compare(>< 10.5 10.6 mmacosx-version-min= -ldylib1.10.5.o)"
#define DARWIN_CRT1_SPEC \
"%:version-compare(!> 10.5 mmacosx-version-min= -lcrt1.o) \
- %:version-compare(>= 10.5 mmacosx-version-min= -lcrt1.10.5.o) \
+ %:version-compare(>< 10.5 10.6 mmacosx-version-min= -lcrt1.10.5.o) \
+ %:version-compare(>= 10.6 mmacosx-version-min= -lcrt1.10.6.o) \
%{fgnu-tm: -lcrttms.o}"
/* Default Darwin ASM_SPEC, very simple. */