diff options
author | Iain Sandoe <iain@sandoe.co.uk> | 2023-07-09 09:02:39 +0100 |
---|---|---|
committer | Iain Sandoe <iain@sandoe.co.uk> | 2023-09-20 10:55:16 +0100 |
commit | 2e36eedb244badaaf2a70388071115c851b8db9b (patch) | |
tree | e5961eb0a1a0c8b3c4a9d7cdcdc50b941e539766 /gcc/range-op-float.cc | |
parent | daf175e8170c18f59cc42c916005698437446272 (diff) | |
download | gcc-2e36eedb244badaaf2a70388071115c851b8db9b.zip gcc-2e36eedb244badaaf2a70388071115c851b8db9b.tar.gz gcc-2e36eedb244badaaf2a70388071115c851b8db9b.tar.bz2 |
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'.
Diffstat (limited to 'gcc/range-op-float.cc')
0 files changed, 0 insertions, 0 deletions