mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-21 14:41:07 +08:00
(do_spec_1): Fix typos in version calculation.
From-SVN: r10634
This commit is contained in:
parent
cf78f929ca
commit
164c4c918a
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user