]> gcc.gnu.org Git - gcc.git/commit
Darwin: Move checking of the 'shared' driver spec.
authorIain Sandoe <iain@sandoe.co.uk>
Sun, 9 Jul 2023 08:02:39 +0000 (09:02 +0100)
committerIain Sandoe <iain@sandoe.co.uk>
Wed, 20 Sep 2023 09:55:16 +0000 (10:55 +0100)
commit2e36eedb244badaaf2a70388071115c851b8db9b
treee5961eb0a1a0c8b3c4a9d7cdcdc50b941e539766
parentdaf175e8170c18f59cc42c916005698437446272
Darwin: Move checking of the 'shared' driver spec.

This avoids a bunch of irrelevant diagnostics if the user passes '-shared' to
gnatmake.  Currently, we push '-dynamiclib' back onto the command line (since
that is the Darwin spelling of 'shared') but this is not handled by gnat1,
leading to a diagnostic for every character after the '-d'.

'-shared' has no effect on gnatmake (it needs to be passed to gnatbind).

This moves the handling of '-shared' to leaf specs so that we do not need to
push 'dynamiclib' onto the command line.

gcc/ChangeLog:

* config/darwin.h:
(SUBTARGET_DRIVER_SELF_SPECS): Move handling of 'shared' into the same
specs as 'dynamiclib'. (STARTFILE_SPEC): Handle 'shared'.
gcc/config/darwin.h
This page took 0.060821 seconds and 5 git commands to generate.