aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2006-12-08 22:22:51 +0000
committerMike Stump <mrs@gcc.gnu.org>2006-12-08 22:22:51 +0000
commit44f31fec967ed184b6d808455e7417ab2a553284 (patch)
treea4a0cf7908ce265888b05ea9c7898d8a2ea271ba /gcc
parent4280a3e362da8fbf6236b723f544ea598a00c9be (diff)
downloadgcc-44f31fec967ed184b6d808455e7417ab2a553284.zip
gcc-44f31fec967ed184b6d808455e7417ab2a553284.tar.gz
gcc-44f31fec967ed184b6d808455e7417ab2a553284.tar.bz2
t-darwin (TARGET_LIBGCC2_CFLAGS): Build libgcc with -mmacosx-version-min=10.4.
* config/rs6000/t-darwin (TARGET_LIBGCC2_CFLAGS): Build libgcc with -mmacosx-version-min=10.4. * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Default to G4 for 10.5+ unless doing kernel builds. From-SVN: r119666
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/config/rs6000/darwin.h12
-rw-r--r--gcc/config/rs6000/t-darwin2
3 files changed, 20 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 287d0de..7e9facb 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+2006-12-08 Mike Stump <mrs@apple.com>
+
+ * config/rs6000/t-darwin (TARGET_LIBGCC2_CFLAGS): Build
+ libgcc with -mmacosx-version-min=10.4.
+ * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Default to
+ G4 for 10.5+ unless doing kernel builds.
+
2006-12-08 Uros Bizjak <ubizjak@gmail.com>
PR target/30120
diff --git a/gcc/config/rs6000/darwin.h b/gcc/config/rs6000/darwin.h
index 760ab4f..ed6e42a 100644
--- a/gcc/config/rs6000/darwin.h
+++ b/gcc/config/rs6000/darwin.h
@@ -96,6 +96,18 @@ do { \
rs6000_default_long_calls = 1; \
target_flags |= MASK_SOFT_FLOAT; \
} \
+ /* Unless the user (not the configurer) has explicitly overridden \
+ it with -mcpu=G3 or -mno-altivec, then 10.5+ targets default to \
+ G4 unless targetting the kernel. */ \
+ if (!flag_mkernel \
+ && !flag_apple_kext \
+ && darwin_macosx_version_min \
+ && strverscmp (darwin_macosx_version_min, "10.5") >= 0 \
+ && ! (target_flags_explicit & MASK_ALTIVEC) \
+ && ! rs6000_select[1].string) \
+ { \
+ target_flags |= MASK_ALTIVEC; \
+ } \
} while(0)
#define C_COMMON_OVERRIDE_OPTIONS do { \
diff --git a/gcc/config/rs6000/t-darwin b/gcc/config/rs6000/t-darwin
index 52c3e99..3513d52 100644
--- a/gcc/config/rs6000/t-darwin
+++ b/gcc/config/rs6000/t-darwin
@@ -18,7 +18,7 @@ DARWIN_EXTRA_CRT_BUILD_CFLAGS = -mlongcall
# it to not properly process the first # directive, causing temporary
# file names to appear in stabs, causing the bootstrap to fail. Using -pipe
# works around this by not having any temporary file names.
-TARGET_LIBGCC2_CFLAGS = -Wa,-force_cpusubtype_ALL -pipe
+TARGET_LIBGCC2_CFLAGS = -Wa,-force_cpusubtype_ALL -pipe -mmacosx-version-min=10.4
# Export the _xlq* symbols from darwin-ldouble.c.
SHLIB_MAPFILES += $(srcdir)/config/rs6000/libgcc-ppc64.ver