projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6adcfd
)
(process_command): Discard after first space in spec_version.
author
Richard Stallman
<rms@gnu.org>
Sat, 24 Oct 1992 00:50:54 +0000
(
00:50
+0000)
committer
Richard Stallman
<rms@gnu.org>
Sat, 24 Oct 1992 00:50:54 +0000
(
00:50
+0000)
From-SVN: r2583
gcc/gcc.c
patch
|
blob
|
history
diff --git
a/gcc/gcc.c
b/gcc/gcc.c
index 77b8e3e72a2898d1f73568ca004a91c666f67be7..f1cf450865cdaf0cb095cf1c25612047d18720ae 100644
(file)
--- a/
gcc/gcc.c
+++ b/
gcc/gcc.c
@@
-1801,7
+1801,11
@@
process_command (argc, argv)
n_switches = 0;
n_infiles = 0;
- spec_version = version_string;
+
+ /* Default for -V is our version number, ending at first space. */
+ spec_version = save_string (version_string, strlen (version_string));
+ for (temp = spec_version; *temp && *temp != ' '; temp++);
+ if (*temp) *temp = '\0';
/* Set up the default search paths. */