From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1698) id A21E83858C52; Thu, 2 Feb 2023 16:18:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A21E83858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1675354706; bh=ip1de6b5iHLbazACckoQ56Q5TeWA1A9Z0prMk1DxZCE=; h=From:To:Subject:Date:From; b=ugyQj2MLG1E57coBeIhNtZC/lXyzEVX8G0PwMnyS1bmDfDphAs8pRRJrzMp33N77K OOYIVOFvLI18uVZ/GdCaXuUaHFbKRS86N7mn9ebGa0Fn/yh9FlBv8Uyab2wwtcJVG4 7nY1aiAxuFvX7XMFZI1/2r1C73aSEe2wbPTkBOOk= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Iain D Sandoe To: gcc-cvs@gcc.gnu.org Subject: [gcc r13-5660] driver, toplevel: Avoid emitting the version information twice. X-Act-Checkin: gcc X-Git-Author: Iain Sandoe X-Git-Refname: refs/heads/master X-Git-Oldrev: 9c7e898bbd643f45a553afcb5204717048205a1a X-Git-Newrev: f25dd779d44fb75a6c5e1c73e5bf2c85af180026 Message-Id: <20230202161826.A21E83858C52@sourceware.org> Date: Thu, 2 Feb 2023 16:18:26 +0000 (GMT) List-Id: https://gcc.gnu.org/g:f25dd779d44fb75a6c5e1c73e5bf2c85af180026 commit r13-5660-gf25dd779d44fb75a6c5e1c73e5bf2c85af180026 Author: Iain Sandoe 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 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);