re PR middle-end/41260 (major regressions on *-apple-darwin10 at -m64 caused by r147995)
authorJack Howarth <howarth@bromo.med.uc.edu>
Tue, 22 Sep 2009 02:28:19 +0000 (02:28 +0000)
committerPeter O'Gorman <pogma@gcc.gnu.org>
Tue, 22 Sep 2009 02:28:19 +0000 (02:28 +0000)
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

gcc/ChangeLog
gcc/config.gcc
gcc/config/darwin10.h [new file with mode: 0644]

index 4d72c8b..59123c6 100644 (file)
@@ -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
index 0002563..2e28ea2 100644 (file)
@@ -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 (file)
index 0000000..d292237
--- /dev/null
@@ -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}"