From: Sagi Mor <sagimor6@gmail.com>
To: gcc-patches@gcc.gnu.org
Subject: [PATCH] gcc: fix gcc --help -v opertion with linker flags and input files [PR108328]
Date: Sat, 7 Jan 2023 14:01:05 +0200 [thread overview]
Message-ID: <CAGA7tdvVLbySE0i=YjV7GT-ArgFyaJAb0-k8XzwNqhowDDZrvw@mail.gmail.com> (raw)
[-- 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
reply other threads:[~2023-01-07 12:01 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAGA7tdvVLbySE0i=YjV7GT-ArgFyaJAb0-k8XzwNqhowDDZrvw@mail.gmail.com' \
--to=sagimor6@gmail.com \
--cc=gcc-patches@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).