aboutsummaryrefslogtreecommitdiff
path: root/gcc/d
diff options
context:
space:
mode:
authorArsen Arsenović <arsen@aarsen.me>2024-09-02 21:29:53 +0200
committerArsen Arsenović <arsen@gcc.gnu.org>2025-01-22 20:11:24 +0100
commitfbc94ff6e7615c7e5aeff8f3e0a2f894889e1b4f (patch)
tree91536a68fd33258bb4859fcedb40cc8978d86cc1 /gcc/d
parent6db9d4e954bff3dfd926c7c9b71e41e47b7089c8 (diff)
downloadgcc-fbc94ff6e7615c7e5aeff8f3e0a2f894889e1b4f.zip
gcc-fbc94ff6e7615c7e5aeff8f3e0a2f894889e1b4f.tar.gz
gcc-fbc94ff6e7615c7e5aeff8f3e0a2f894889e1b4f.tar.bz2
d,ada/spec: only sub nostd{inc,lib} rather than nostd{inc,lib}*
This prevents the gcc driver erroneously accepting -nostdlib++ when it should not when Ada was enabled. Also, similarly, -nostdinc* (where * is nonempty) is unhandled by either the Ada or D compiler, so the spec should not substitute those either (thanks for pointing that out, Jakub). Brought to my attention by Michał Górny <mgorny@gentoo.org>. gcc/ada/ChangeLog: * gcc-interface/lang-specs.h: Replace %{nostdinc*} %{nostdlib*} with %{nostdinc} %{nostdlib}. gcc/d/ChangeLog: * lang-specs.h: Replace %{nostdinc*} with %{nostdinc}. gcc/testsuite/ChangeLog: * gcc.dg/driver-nostdlibstar.c: New test.
Diffstat (limited to 'gcc/d')
-rw-r--r--gcc/d/lang-specs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/d/lang-specs.h b/gcc/d/lang-specs.h
index 2292e7e..64e7a5f 100644
--- a/gcc/d/lang-specs.h
+++ b/gcc/d/lang-specs.h
@@ -22,7 +22,7 @@ along with GCC; see the file COPYING3. If not see
{".dd", "@d", 0, 1, 0 },
{".di", "@d", 0, 1, 0 },
{"@d",
- "%{!E:d21 %i %(cc1_options) %I %{nostdinc*} %{i*} %{I*} %{J*} \
+ "%{!E:d21 %i %(cc1_options) %I %{nostdinc} %{i*} %{I*} %{J*} \
%{H} %{Hd*} %{Hf*} %{MD:-MD %b.deps} %{MMD:-MMD %b.deps} \
%{M} %{MM} %{MF*} %{MG} %{MP} %{MQ*} %{MT*} \
%{X:-Xf %b.json} %{Xf*} \