https://gcc.gnu.org/g:bf34364e50c62df1458481539a885036c9a6cc0a

commit r16-7368-gbf34364e50c62df1458481539a885036c9a6cc0a
Author: Robert Dubner <[email protected]>
Date:   Fri Feb 6 13:55:39 2026 -0500

    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.

Diff:
---
 gcc/cobol/gcobolspec.cc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gcc/cobol/gcobolspec.cc b/gcc/cobol/gcobolspec.cc
index 500d55dc6b19..899bf0cb0d76 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;

Reply via email to