>From bf34364e50c62df1458481539a885036c9a6cc0a Mon Sep 17 00:00:00 2001
From: Robert Dubner <[email protected]>
Date: Fri, 6 Feb 2026 13:55:39 -0500
Subject: [PATCH] cobol: Process -dumpspecs, -dumpversion, -dumpmachine.
[PR119332]
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 | 3 +++
1 file changed, 3 insertions(+)
diff --git a/gcc/cobol/gcobolspec.cc b/gcc/cobol/gcobolspec.cc
index 500d55dc6b1..899bf0cb0d7 100644
--- a/gcc/cobol/gcobolspec.cc
+++ b/gcc/cobol/gcobolspec.cc
@@ -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;
--
2.34.1