]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fixup gcobol driver handling of -print-* options
authorRichard Biener <rguenther@suse.de>
Tue, 11 Mar 2025 10:29:51 +0000 (11:29 +0100)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 11 Mar 2025 10:32:00 +0000 (11:32 +0100)
We are not supposed to diagnose missing input files.

gcc/cobol/
* gcobolspec.cc (lang_specific_driver): For OPT_print_* do
not error on no input files.

gcc/cobol/gcobolspec.cc

index 20ca757fa8714d9d9d7dca6ed02d62a3ba3f73a1..f3f9c327cd0a9378bd63b9a1fd0b75ea1eeb0f55 100644 (file)
@@ -406,6 +406,18 @@ lang_specific_driver (struct cl_decoded_option **in_decoded_options,
         n_mains += 1;
         break;
 
+      case OPT_print_search_dirs:
+      case OPT_print_file_name_:
+      case OPT_print_prog_name_:
+      case OPT_print_multi_lib:
+      case OPT_print_multi_directory:
+      case OPT_print_sysroot:
+      case OPT_print_multi_os_directory:
+      case OPT_print_multiarch:
+      case OPT_print_sysroot_headers_suffix:
+       no_files_error = false;
+       break;
+
       case OPT_v:
         no_files_error = false;
         verbose = true;