summaryrefslogtreecommitdiff
path: root/gcc/config/darwin10.h
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright years.Jakub Jelinek2020-01-011-1/+1
| | | | From-SVN: r279813
* [Darwin, specs] Tidy some more linker options.Iain Sandoe2019-06-191-7/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | pie, no-pie and rdynamic are driver options, we can process them in the relevant place and drop them once dealt with. There's no need to generate a new header to process the "no_compact_unwind" which is applied on the basis of the target system. Support for the -pie, -no_pie and -no_compact_unwind options should ideally be checked at configure time, however the status quo is to assert that linkers capable of targeting the relevant systems support these options (i.e. we trust that the user doesn't attempt to configure inappropriately). TODO: check the availability of the linker opts in configure rather than trusting to the user. This will fix the fail of pie-7.c, which is a result of failing to handle the no-pie driver option. 2019-06-19 Iain Sandoe <iain@sandoe.co.uk> * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC and DARWIN_NOPIE_SPEC. (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC. (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h. (DARWIN_NOPIE_SPEC): Collate from darwin10.h. (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h (DARWIN_EXPORT_DYNAMIC): Delete. * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind and pie options processing to darwin.h. * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h From-SVN: r272484
* Update copyright years.Jakub Jelinek2019-01-011-1/+1
| | | | From-SVN: r267494
* Move Darwin10 unwinder fix to a crt shim.Iain Sandoe2018-08-221-4/+6
| | | | | | | | | | | | | | | | | | gcc/ * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Adjust to use the Darwin10-specific unwinder-shim. * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Remove. * config/rs6000/darwin.h (DARWIN_CRT1_SPEC, DARWIN_DYLIB1_SPEC): New to cater for Darwin10 Rosetta. libgcc/ * config/unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction): move from here ... * config/darwin10-unwind-find-enc-func.c: … to here. * config/t-darwin: Build Darwin10 unwinder shim crt. * libgcc/config.host: Add the Darwin10 unwinder shim. From-SVN: r263765
* Add support for -nolibcOlivier Hainque2018-07-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | 2018-06-07 Olivier Hainque <hainque@adacore.com> * common.opt (nolibc): New option. * doc/invoke.texi (Link Options): Document it. * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): Honor nolibc. * config/alpha/linux.h: Likewise. * config/arc/elf.h: Likewise. * config/arm/uclinux-elf.h: Likewise. * config/arm/unknown-elf.h: Likewise. * config/avr/avrlibc.h: Likewise. * config/bfin/bfin.h: Likewise. * config/bfin/linux.h: Likewise. * config/bfin/uclinux.h: Likewise. * config/darwin.h: Likewise. * config/darwin10.h: Likewise. * config/darwin12.h: Likewise. * config/gnu-user.h: Likewise. * config/lm32/uclinux-elf.h: Likewise. * config/pa/pa-hpux11.h: Likewise. * config/pa/pa64-hpux.h: Likewise. * config/sparc/sparc.h: Likewise. From-SVN: r263083
* Update copyright years.Jakub Jelinek2018-01-031-1/+1
| | | | From-SVN: r256169
* Update copyright years.Jakub Jelinek2017-01-011-1/+1
| | | | From-SVN: r243994
* [Darwin, config] Arrange for ld64 to be detected as Darwin's linker.Iain Sandoe2016-11-271-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is an initial patch in a series that converts Darwin's configury to detect ld64 features, rather than the current process of hard-coding them on target system version. A ld64-compatible linker is currently required and assumed by Darwin. If a DEFAULT_LINKER is set via --with-ld= then this will be tested to see if it is ld64. The ld64 version is determined for the chosen ld and this is exported for use in setting a default value for -mtarget-linker (needed for run-time code-gen changes to section choices). The support for -rdynamic is converted to be detected at config time, or by the ld64 version if that is found. gcc/ 2016-11-27 Iain Sandoe <iain@codesourcery.com> PR target/71767 * configure.ac (with-ld64): New var, set for Darwin, set on detection of ld64, gcc_cv_ld64_export_dynamic: New, New test. * config/darwin.h: Use LD64_HAS_DYNAMIC export. DEF_LD64: New, define. * config/darwin10.h(DEF_LD64): Update for this target version. * config/darwin12.h(LINK_GCC_C_SEQUENCE_SPEC): Remove rdynamic test. (DEF_LD64): Update for this target version. * configure: Regenerated. * config.in: Regenerated. From-SVN: r242894
* Update copyright years.Jakub Jelinek2016-01-041-1/+1
| | | | From-SVN: r232055
* Update copyright years.Jakub Jelinek2015-01-051-1/+1
| | | | From-SVN: r219188
* Update copyright years in gcc/Richard Sandiford2014-01-021-1/+1
| | | | From-SVN: r206289
* Update copyright years in gcc/Richard Sandiford2013-01-101-1/+1
| | | | From-SVN: r195098
* darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Pass -no_pie for non-PIC code when ↵Jack Howarth2011-12-041-1/+3
| | | | | | | | | | | targeting 10.7 or later. 2011-12-03 Jack Howarth <howarth@bromo.med.uc.edu> * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Pass -no_pie for non-PIC code when targeting 10.7 or later. From-SVN: r181982
* make darwin port a little more cross & cross native build friendly.Iain Sandoe2011-09-081-0/+3
| | | | | | | | | | | | | *config/darwin-driver.c (darwin_find_version_from_kernel): New routine cut from ... (darwin_default_min_version): Amended to provide defaults for the cross directory case. (darwin_driver_init): call darwin_default_min_version unconditionally. * config/darwin.h (DEF_MIN_OSX_VERSION): New. * config/darwin9.h: Likewise. * config/darwin10.h: Likewise. * config/rs6000/darwin7.h: Likewise. From-SVN: r178679
* * config/darwin10.h Remove duplicate LIB_SPEC.Iain Sandoe2011-09-061-3/+0
| | | | From-SVN: r178609
* re PR target/47558 (163267 breaks exception traceback in xplor-nih)Iain Sandoe2011-02-071-4/+11
| | | | | | | | | | | | 2011-02-07 Iain Sandoe <iains@gcc.gnu.org> PR target/47558 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first on 10.6 and later to ensure that we always use the unwinder from the system. Only add -no_compact_unwind when tarteting darwin 10.6 or later. From-SVN: r169905
* Update Copyright years for files modified in 2010.Jakub Jelinek2011-01-031-1/+1
| | | | From-SVN: r168438
* re PR c++/46904 (g++.dg/tree-prof/(indir-call-prof.C|inline_mismatch_args.C) ↵Iain Sandoe2010-12-201-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | fail on powerpc-apple-darwin9) PR c++/46904 PR middle-end/46916 PR target/46950 * config/darwin.c (generating_for_darwin_version): New var. (darwin_text_section): Remove. (darwin_rodata_section): Do not check function section here. (darwin_emit_unwind_label): Do not emit for Darwin >= 9. Emit distinct labels for successive calls for the same decl. (darwin_override_options): Set generating_for_darwin_version. Add FIXME and disable -freorder-blocks-and-partition. Suppress automatic asynchronous unwind tables for m32. Switch off -freorder-blocks-and-partition when unwind tables will be generated. Update to use generating_for_darwin_version. (darwin_function_section): Check for cases that need to be placed in coalesced sections. * config/darwin-sections.def: Define hot, cold, startup and exit sections for both coalesced and regular code. * config/darwin.h (USE_SELECT_SECTION_FOR_FUNCTIONS): Delete. * config/darwin10.h (TARGET_ASM_EMIT_UNWIND_LABEL): Delete. From-SVN: r168083
* re PR c++/41313 (r150553 causes g++.dg/tree-prof/partition1.C compilation ↵Jack Howarth2009-10-211-0/+5
| | | | | | | | | | | | | and execution test failures on *-apple-darwin*) 2009-10-21 Jack Howarth <howarth@bromo.med.uc.edu> PR c++/41313 * gcc/config/darwin10.h: Use default_emit_unwind_label. * gcc/config/darwin.c: Disable -freorder-blocks-and-partition when darwin_emit_unwind_label is used. From-SVN: r153057
* Correct the copyright year. It is not 2006 or 2007.Peter O'Gorman2009-09-221-1/+1
| | | | From-SVN: r151961
* re PR middle-end/41260 (major regressions on *-apple-darwin10 at -m64 caused ↵Jack Howarth2009-09-221-0/+25
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