[Darwin] Some TLC for older Darwin versions.
authorIain Sandoe <iain@sandoe.co.uk>
Wed, 3 Jul 2019 18:36:28 +0000 (18:36 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Wed, 3 Jul 2019 18:36:28 +0000 (18:36 +0000)
commit179c7ef523f4331036fe70c298c2f5f46e4ba3b1
tree146950d97c3e654e1a40264145cc75b3ff5b44e8
parent911c8df0a30913ba6c84b8a65cb338e9c54efeee
[Darwin] Some TLC for older Darwin versions.

The library handling and some of the options for creating the crts for
the older PPC Darwin versions had bit-rotted somewhat.  This adjusts the
build criteria for the crts to avoid newer ld64 versions warnings about
mismatches in build and object versions.

Added to some of the comments that it's documented why the specs are as
they are.

2019-07-03  Iain Sandoe  <iain@sandoe.co.uk>

gcc/

* config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
(STARTFILE_SPEC): Split crt3 into a separate spec.
(DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
(DARWIN_CRT2_SPEC): New.
(DARWIN_CRT3_SPEC): New.
(MIN_LD64_OMIT_STUBS): Revise to 62.1.
* config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
(DARWIN_CRT3_SPEC): New.

libgcc/

2019-07-03  Iain Sandoe  <iain@sandoe.co.uk>

* config.host (powerpc-*-darwin*,powerpc64-*-darwin*): Revise crt
list.
* config/rs6000/t-darwin: Build crt3_2 for older systems.  Revise
mmacosx-version-min for crts to run across all system versions.
* config/rs6000/t-darwin64 (LIB2ADD): Remove.
* config/t-darwin: Revise mmacosx-version-min for crts to run across
system versions >= 10.4.

From-SVN: r273016
gcc/ChangeLog
gcc/config/darwin.h
gcc/config/rs6000/darwin.h
libgcc/ChangeLog
libgcc/config.host
libgcc/config/rs6000/t-darwin
libgcc/config/rs6000/t-darwin64
libgcc/config/t-darwin