From 9c17474c1efd4825adfeb415b527ead8cf19700b Mon Sep 17 00:00:00 2001 From: Iain Sandoe Date: Tue, 1 Dec 2020 15:34:11 +0000 Subject: [PATCH] Darwin, D : Adjust the X spec to cater for duplicate use. The '-X' flag is an obsolete spelling for a command to tell the linker to 'strip local symbols'. This has been the default action for a long time - but, as per the usual GCC approach, although the flag is retired, we have not removed it; rather, we just delete it in the driver self-spec. The D language adds this flag as a front end option (to emit json) which means that deleting it in the driver disables that function in D. This patch works around the duplication by removing the unused flag in the link_spec instead of the driver self-spec. gcc/ChangeLog: * config/darwin.h: Remove unused 'X' specs in the link spec rather than driver self-specs. --- gcc/config/darwin.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h index 5a766319cb0..da40a08443e 100644 --- a/gcc/config/darwin.h +++ b/gcc/config/darwin.h @@ -135,7 +135,7 @@ extern GTY(()) int darwin_ms_struct; "%{shared:-Zdynamiclib} %