aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.cc
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2023-01-01 20:47:42 +0000
committerIain Sandoe <iain@sandoe.co.uk>2023-01-05 12:48:25 +0000
commitdd77b04999534f61825cc810a5bc428707b8106b (patch)
tree10a1fa88adc5977a7cf3dab3c88868b9de8ee748 /gcc/gcc.cc
parent2421470867f198c3aa57e0a7ab0d473aac4cdd38 (diff)
downloadgcc-dd77b04999534f61825cc810a5bc428707b8106b.zip
gcc-dd77b04999534f61825cc810a5bc428707b8106b.tar.gz
gcc-dd77b04999534f61825cc810a5bc428707b8106b.tar.bz2
modula-2, driver: Implement handling for -static-libgm2.
This was unimplemented so far. gcc/ChangeLog: * common.opt: Add -static-libgm2. * config/darwin.h (LINK_SPEC): Handle static-libgm2. * doc/gm2.texi: Document static-libgm2. * gcc.cc (driver_handle_option): Allow static-libgm2. gcc/m2/ChangeLog: * gm2spec.cc (lang_specific_driver): Handle static-libgm2. * lang.opt: Add static-libgm2.
Diffstat (limited to 'gcc/gcc.cc')
-rw-r--r--gcc/gcc.cc12
1 files changed, 7 insertions, 5 deletions
diff --git a/gcc/gcc.cc b/gcc/gcc.cc
index 91313a8..d629ca5 100644
--- a/gcc/gcc.cc
+++ b/gcc/gcc.cc
@@ -4540,12 +4540,14 @@ driver_handle_option (struct gcc_options *opts,
case OPT_static_libgfortran:
case OPT_static_libquadmath:
case OPT_static_libphobos:
+ case OPT_static_libgm2:
case OPT_static_libstdc__:
- /* These are always valid, since gcc.cc itself understands the
- first two, gfortranspec.cc understands -static-libgfortran,
- d-spec.cc understands -static-libphobos, g++spec.cc
- understands -static-libstdc++ and libgfortran.spec handles
- -static-libquadmath. */
+ /* These are always valid; gcc.cc itself understands the first two
+ gfortranspec.cc understands -static-libgfortran,
+ libgfortran.spec handles -static-libquadmath,
+ d-spec.cc understands -static-libphobos,
+ gm2spec.cc understands -static-libgm2,
+ and g++spec.cc understands -static-libstdc++. */
validated = true;
break;