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().
This commit is contained in:
Iain Sandoe 2023-01-22 21:12:15 +00:00
parent 9c7e898bbd
commit f25dd779d4

View file

@ -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);