[Ada] Fix PR ada/85036
Eric Botcazou
ebotcazou@adacore.com
Fri Mar 23 23:19:00 GMT 2018
This is a fallout of my fix for PR ada/83016, which allowed the --LINK option
of gnatlink to contain switches in addition to the linker itself. There is a
conflict with the switches passed with the --GCC option so this patch arranges
for the former switches to take precedence over the latter switches when it
comes to the final linking step.
Tested on x86-64/Linux, applied on the mainline.
2018-03-23 Eric Botcazou <ebotcazou@adacore.com>
PR ada/85036
* gnatlink.adb (Process_Args): Drop existing link switches if multiple
switches are passed for --LINK.
--
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr85036.diff
Type: text/x-patch
Size: 639 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20180323/f703337b/attachment.bin>
More information about the Gcc-patches
mailing list