aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack Howarth <howarth@bromo.med.uc.edu>2009-09-22 02:28:19 +0000
committerPeter O'Gorman <pogma@gcc.gnu.org>2009-09-22 02:28:19 +0000
commitc9c80434b62f701de3502d8b25cd9462f3374a56 (patch)
tree85c72de7dc49198ecd76e219663e41cf3d9e8cad
parente0fd74691d8281cf68bfeedcf528d4a773b5ce04 (diff)
downloadgcc-c9c80434b62f701de3502d8b25cd9462f3374a56.zip
gcc-c9c80434b62f701de3502d8b25cd9462f3374a56.tar.gz
gcc-c9c80434b62f701de3502d8b25cd9462f3374a56.tar.bz2
re PR middle-end/41260 (major regressions on *-apple-darwin10 at -m64 caused by r147995)
PR middle-end/41260 * gcc/config.gcc: Use darwin9.h and darwin10.h on darwin10 and later. * gcc/config/darwin10.h: Add file to pass -no_compact_unwind on LIB_SPEC for darwin10 and later since it always uses the unwinder in libSystem which is derived from the gcc 4.2.1 unwinder. From-SVN: r151960
-rw-r--r--gcc/ChangeLog8
-rw-r--r--gcc/config.gcc5
-rw-r--r--gcc/config/darwin10.h25
3 files changed, 37 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 4d72c8b..59123c6 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,11 @@
+2009-09-22 Jack Howarth <howarth@bromo.med.uc.edu>
+
+ PR middle-end/41260
+ * gcc/config.gcc: Use darwin9.h and darwin10.h on darwin10 and later.
+ * gcc/config/darwin10.h: Add file to pass -no_compact_unwind on
+ LIB_SPEC for darwin10 and later since it always uses the unwinder in
+ libSystem which is derived from the gcc 4.2.1 unwinder.
+
2009-09-22 Dave Korn <dave.korn.cygwin@gmail.com>
PR middle-end/41357
diff --git a/gcc/config.gcc b/gcc/config.gcc
index 0002563..2e28ea2 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -400,9 +400,12 @@ case ${target} in
*-*-darwin*)
tm_file="${tm_file} darwin.h"
case ${target} in
- *-*-darwin[912]*)
+ *-*-darwin9*)
tm_file="${tm_file} darwin9.h"
;;
+ *-*-darwin[12][0-9]*)
+ tm_file="${tm_file} darwin9.h darwin10.h"
+ ;;
esac
tm_file="${tm_file} ${cpu_type}/darwin.h"
tm_p_file="${tm_p_file} darwin-protos.h"
diff --git a/gcc/config/darwin10.h b/gcc/config/darwin10.h
new file mode 100644
index 0000000..d292237
--- /dev/null
+++ b/gcc/config/darwin10.h
@@ -0,0 +1,25 @@
+/* Target definitions for Darwin (Mac OS X) systems.
+ Copyright (C) 2006, 2007 Free Software Foundation, Inc.
+ Contributed by Jack Howarth <howarth@bromo.med.uc.edu>.
+
+This file is part of GCC.
+
+GCC is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 3, or (at your option)
+any later version.
+
+GCC is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GCC; see the file COPYING3. If not see
+<http://www.gnu.org/licenses/>. */
+
+/* Fix PR41260 by passing -no_compact_unwind on darwin10 and later until
+unwinder in libSystem is fixed to digest new epilog unwinding notes. */
+
+#undef LIB_SPEC
+#define LIB_SPEC "%{!static:-no_compact_unwind -lSystem}"