From: Iain Buclaw Date: Thu, 20 Mar 2025 23:28:45 +0000 (+0100) Subject: d: Fix quoted command-line options to match lang.opt [PR118545] X-Git-Tag: basepoints/gcc-16~1076 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47822ef8f1b03ab7124aba694709825a93897994;p=thirdparty%2Fgcc.git d: Fix quoted command-line options to match lang.opt [PR118545] It was noticed that not all D language options get a url in diagnostics. These have been checked and fixed as necessary. PR d/118545 gcc/d/ChangeLog: * d-lang.cc (d_handle_option): Adjust quoted options. --- diff --git a/gcc/d/d-lang.cc b/gcc/d/d-lang.cc index 8e37fed2b60..21f46ffb6aa 100644 --- a/gcc/d/d-lang.cc +++ b/gcc/d/d-lang.cc @@ -460,7 +460,7 @@ d_handle_option (size_t scode, const char *arg, HOST_WIDE_INT value, break; } - error ("bad argument for %<-fdebug%>: %qs", arg); + error ("bad argument for %<-fdebug=%>: %qs", arg); break; case OPT_fdoc: @@ -533,7 +533,7 @@ d_handle_option (size_t scode, const char *arg, HOST_WIDE_INT value, case OPT_fmodule_file_: global.params.modFileAliasStrings.push (arg); if (!strchr (arg, '=')) - error ("bad argument for %<-fmodule-file%>: %qs", arg); + error ("bad argument for %<-fmodule-file=%>: %qs", arg); break; case OPT_fmoduleinfo: @@ -700,7 +700,7 @@ d_handle_option (size_t scode, const char *arg, HOST_WIDE_INT value, break; } - error ("bad argument for %<-fversion%>: %qs", arg); + error ("bad argument for %<-fversion=%>: %qs", arg); break; case OPT_H: