projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96abdcb
)
(main): For -V output, give both driver and compiler versions, if they
author
Richard Kenner
<kenner@gcc.gnu.org>
Wed, 16 Nov 1994 21:40:04 +0000
(16:40 -0500)
committer
Richard Kenner
<kenner@gcc.gnu.org>
Wed, 16 Nov 1994 21:40:04 +0000
(16:40 -0500)
differ.
From-SVN: r8472
gcc/gcc.c
patch
|
blob
|
history
diff --git
a/gcc/gcc.c
b/gcc/gcc.c
index 8de0b0964be6e8ebcb9e3a52fece329911084b60..4f9e2c05bfa2b7b2c1649f3333a011568aec1ee4 100644
(file)
--- a/
gcc/gcc.c
+++ b/
gcc/gcc.c
@@
-4351,7
+4351,12
@@
main (argc, argv)
if (verbose_flag)
{
- fprintf (stderr, "gcc version %s\n", version_string);
+ if (! strcmp (version_string, compiler_version))
+ fprintf (stderr, "gcc version %s\n", version_string);
+ else
+ fprintf (stderr, "gcc driver version %s executing gcc version %s\n",
+ version_string, compiler_version);
+
if (n_infiles == 0)
exit (0);
}