r274110 - in /branches/gcc-9-branch/gcc/ada: Ch...
iains@gcc.gnu.org
iains@gcc.gnu.org
Mon Aug 5 08:09:00 GMT 2019
Author: iains
Date: Mon Aug 5 08:09:34 2019
New Revision: 274110
URL: https://gcc.gnu.org/viewcvs?rev=274110&root=gcc&view=rev
Log:
Ada, backport push -shared-libgcc where needed.
Gnatlink has code that checks for duplicate '-shared-libgccâ switches (but not
duplicate âstatic-libgccâ) and also pushes âstatic-libgcc' onto the link line for
targets that default to static linking, provided '-shared-libgcc' is not present.
For targets that should use a shared libgcc we need the same process to be
applied (in inverse), in the event that they do not default to providing the
shared flag implicitly.
So this adds the complementary set of tests for the shared case and pushes
the shared flag as needed. As a minor tidy-up thereâs no need push duplicates
of the libgcc switch onto the link line when one has already been seen (given by
the user).
The patch does not alter any of the platform defaults for static/shared libgcc,
but it ensures that the intent of the link is explicit.
2019-08-05 Iain Sandoe <iain@sandoe.co.uk>
Backport from mainline.
2019-06-30 Iain Sandoe <iain@sandoe.co.uk>
* gnatlink.adb (Link_Step): Remove duplicate -static-libgcc switches.
Push -shared-libgcc explicitly, when it is the target default (unless
overidden by the static flag).
When the user has put an instance of shared/static-libgcc do not push
a duplicate of this.
Modified:
branches/gcc-9-branch/gcc/ada/ChangeLog
branches/gcc-9-branch/gcc/ada/gnatlink.adb
More information about the Gcc-cvs
mailing list