aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2025-03-11 11:29:51 +0100
committerRichard Biener <rguenth@gcc.gnu.org>2025-03-11 11:32:00 +0100
commitc20e24f8e7318bb50fa0dab98012d9c2f3dbf55b (patch)
treec0088aa7f48909cebe3196451f27b4ae10c5af1f
parent6a3f9f30d93c376a8a5e98be888da14923b85e63 (diff)
downloadgcc-c20e24f8e7318bb50fa0dab98012d9c2f3dbf55b.zip
gcc-c20e24f8e7318bb50fa0dab98012d9c2f3dbf55b.tar.gz
gcc-c20e24f8e7318bb50fa0dab98012d9c2f3dbf55b.tar.bz2
Fixup gcobol driver handling of -print-* options
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.
-rw-r--r--gcc/cobol/gcobolspec.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/gcc/cobol/gcobolspec.cc b/gcc/cobol/gcobolspec.cc
index 20ca757..f3f9c32 100644
--- a/gcc/cobol/gcobolspec.cc
+++ b/gcc/cobol/gcobolspec.cc
@@ -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;