]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
cobol: Process -dumpspecs, -dumpversion, -dumpmachine. [PR119332]
authorRobert Dubner <rdubner@symas.com>
Fri, 6 Feb 2026 18:55:39 +0000 (13:55 -0500)
committerRobert Dubner <rdubner@symas.com>
Fri, 6 Feb 2026 19:13:45 +0000 (14:13 -0500)
Process the -dumpspecs, -dumpversion, and -dumpmachine options without
complaining about a lack of input files.

gcc/cobol/ChangeLog:

PR cobol/119332
* gcobolspec.cc (lang_specific_driver): Add -dumpspecs,
-dumpversion, -dumpmachine to the no_files_error=false cases.

gcc/cobol/gcobolspec.cc

index 500d55dc6b1937ca740a4300e52739f6e192d536..899bf0cb0d76f07f97f7fe75f5e10684b564ed82 100644 (file)
@@ -301,6 +301,9 @@ lang_specific_driver (struct cl_decoded_option **in_decoded_options,
       case OPT_print_multi_os_directory:
       case OPT_print_multiarch:
       case OPT_print_sysroot_headers_suffix:
+      case OPT_dumpmachine:
+      case OPT_dumpversion:
+      case OPT_dumpspecs:
         no_files_error = false;
         break;