* [PATCH] gcc: fix gcc --help -v opertion with linker flags and input files [PR108328]
@ 2023-01-07 12:01 Sagi Mor
0 siblings, 0 replies; only message in thread
From: Sagi Mor @ 2023-01-07 12:01 UTC (permalink / raw)
To: gcc-patches
[-- Attachment #1: Type: text/plain, Size: 746 bytes --]
PR gcc/108328
gcc/ChangeLog:
* gcc/gcc.cc: print help once and only once
---
gcc/gcc.cc | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/gcc/gcc.cc b/gcc/gcc.cc
index d629ca5e424..bd468a6a254 100644
--- a/gcc/gcc.cc
+++ b/gcc/gcc.cc
@@ -5414,9 +5414,9 @@ process_command (unsigned int decoded_options_count,
}
/* Ensure we only invoke each subprocess once. */
- if (n_infiles == 0
- && (print_subprocess_help || print_help_list || print_version))
+ if (print_subprocess_help || print_help_list || print_version)
{
+ n_infiles = 0;
/* Create a dummy input file, so that we can pass
the help option on to the various sub-processes. */
add_infile ("help-dummy", "c");
--
2.34.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-01-07 12:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-07 12:01 [PATCH] gcc: fix gcc --help -v opertion with linker flags and input files [PR108328] Sagi Mor
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).