config.gcc: Use darwin9.h, darwin10.h and darwin12.h on darwin12 and later.
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. From-SVN: r222822
This commit is contained in:
parent
3836ac7c33
commit
0674c9de9d
@ -1,3 +1,11 @@
|
||||
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
|
||||
|
@ -605,9 +605,12 @@ case ${target} in
|
||||
*-*-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"
|
||||
|
@ -155,6 +155,9 @@ Driver
|
||||
pthread
|
||||
Driver
|
||||
|
||||
rdynamic
|
||||
Driver
|
||||
|
||||
seg_addr_table
|
||||
Driver Separate Alias(Zseg_addr_table)
|
||||
|
||||
|
27
gcc/config/darwin12.h
Normal file
27
gcc/config/darwin12.h
Normal file
@ -0,0 +1,27 @@
|
||||
/* 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"
|
Loading…
x
Reference in New Issue
Block a user