Commit 7ad9ff7a by Doug Evans

gcc.c (main): Handle blank in version_string when comparing with compiler_version.

	* gcc.c (main): Handle blank in version_string when comparing
	with compiler_version.

From-SVN: r14414
parent 84e884e9
......@@ -4533,7 +4533,17 @@ main (argc, argv)
if (verbose_flag)
{
if (! strcmp (version_string, compiler_version))
int n;
/* compiler_version is truncated at the first space when initialized
from version string, so truncate version_string at the first space
before comparing. */
for (n = 0; version_string[n]; n++)
if (version_string[n] == ' ')
break;
if (! strncmp (version_string, compiler_version, n)
&& compiler_version[n] == 0)
fprintf (stderr, "gcc version %s\n", version_string);
else
fprintf (stderr, "gcc driver version %s executing gcc version %s\n",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment