]> 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>
Sat, 27 Apr 2024 16:05:41 +0000 (17:05 +0100)
commita0121359733b2c476131ea34534b53bd3ce92521
tree7991c1847a5e188d45871d031395cfd90489ba68
parentdfaad4ec7520699ba3d4b849883b590818cc3e90
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'.

(cherry picked from commit 2e36eedb244badaaf2a70388071115c851b8db9b)
gcc/config/darwin.h
This page took 0.091267 seconds and 5 git commands to generate.