diff options
author | Doug Evans <dje@gnu.org> | 1995-11-29 23:17:30 +0000 |
---|---|---|
committer | Doug Evans <dje@gnu.org> | 1995-11-29 23:17:30 +0000 |
commit | 164c4c918a10fce2e7e1d851b8e93264ba3bacfd (patch) | |
tree | d636b137ec462f0cd8079b7b6b39cb169af03ea2 | |
parent | cf78f929ca3e675f4ededf7f26c1e672460b3dc1 (diff) | |
download | gcc-164c4c918a10fce2e7e1d851b8e93264ba3bacfd.zip gcc-164c4c918a10fce2e7e1d851b8e93264ba3bacfd.tar.gz gcc-164c4c918a10fce2e7e1d851b8e93264ba3bacfd.tar.bz2 |
(do_spec_1): Fix typos in version calculation.
From-SVN: r10634
-rw-r--r-- | gcc/gcc.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -3774,7 +3774,7 @@ do_spec_1 (spec, inswitch, soft_matched_part) /* If desired, advance to second version number. */ if (c1 == '2') { - /* Set P after the first period. */ + /* Set V after the first period. */ while (*v != 0 && *v != ' ' && *v != '.') v++; if (*v == '.') @@ -3785,7 +3785,7 @@ do_spec_1 (spec, inswitch, soft_matched_part) while (*q != 0 && *q != ' ' && *q != '.') q++; /* Empty string means zero. */ - if (p == q) + if (v == q) { v = "0"; q = v + 1; |