public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-5660] driver, toplevel: Avoid emitting the version information twice.
@ 2023-02-02 16:18 Iain D Sandoe
0 siblings, 0 replies; only message in thread
From: Iain D Sandoe @ 2023-02-02 16:18 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:f25dd779d44fb75a6c5e1c73e5bf2c85af180026
commit r13-5660-gf25dd779d44fb75a6c5e1c73e5bf2c85af180026
Author: Iain Sandoe <iain@sandoe.co.uk>
Date: Sun Jan 22 21:12:15 2023 +0000
driver, toplevel: Avoid emitting the version information twice.
For a regular compile job, with -v we emit the GCC version information
twice - once from main() and once from process_options().
We do not need to output the second header.
Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
gcc/ChangeLog:
* toplev.cc (toplev::main): Only print the version information header
from toplevel main().
Diff:
---
gcc/toplev.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/toplev.cc b/gcc/toplev.cc
index 42937f0ba00..4c15d4f542e 100644
--- a/gcc/toplev.cc
+++ b/gcc/toplev.cc
@@ -1358,7 +1358,7 @@ process_options (bool no_backend)
option flags in use. */
if (version_flag)
{
- print_version (stderr, "", true);
+ /* We already printed the version header in main (). */
if (!quiet_flag)
{
fputs ("options passed: ", stderr);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-02-02 16:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-02 16:18 [gcc r13-5660] driver, toplevel: Avoid emitting the version information twice Iain D Sandoe
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).