+2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
+
+ * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
+ on darwin12 and later.
+ * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
+ file to pass -rdynamic on darwin12 and later.
+ * config/darwin.opt (rdynamic): Add.
+
2015-05-05 Uros Bizjak <ubizjak@gmail.com>
* doc/extend.texi (C Extensions): Update menu for moved Variable
*-*-darwin9*)
tm_file="${tm_file} darwin9.h"
;;
- *-*-darwin[12][0-9]*)
+ *-*-darwin[1][01]*)
tm_file="${tm_file} darwin9.h darwin10.h"
;;
+ *-*-darwin[1][2-9]* | *-*-darwin[2][0-9]*)
+ tm_file="${tm_file} darwin9.h darwin10.h darwin12.h"
+ ;;
esac
tm_file="${tm_file} ${cpu_type}/darwin.h"
tm_p_file="${tm_p_file} darwin-protos.h"
--- /dev/null
+/* Target definitions for Darwin (Mac OS X) systems.
+ Copyright (C) 2009-2015 Free Software Foundation, Inc.
+ Contributed by Jack Howarth <howarth.at.gcc@gmail.com>.
+
+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/>. */
+
+#undef LINK_GCC_C_SEQUENCE_SPEC
+#define LINK_GCC_C_SEQUENCE_SPEC \
+"%:version-compare(>= 10.6 mmacosx-version-min= -no_compact_unwind) \
+ %{rdynamic:-export_dynamic} %{!static:%{!static-libgcc: \
+ %:version-compare(>= 10.6 mmacosx-version-min= -lSystem) } } \
+ %{fno-pic|fno-PIC|fno-pie|fno-PIE|fapple-kext|mkernel|static|mdynamic-no-pic: \
+ %:version-compare(>= 10.7 mmacosx-version-min= -no_pie) } %G %L"