Commit 289b3cc5 by Michael Meissner Committed by Michael Meissner

Fix spec %v3

From-SVN: r34586
parent c77b484a
2000-06-17 Michael Meissner <meissner@redhat.com>
* gcc.c (do_spec_1, '%v3' case): Do not abort if patch level is
not present and there is a field after a '-'.
2000-06-17 Bruce Korb <bkorb@gnu.org> 2000-06-17 Bruce Korb <bkorb@gnu.org>
* fixinc/check.tpl: finish the implementation of multiple tests * fixinc/check.tpl: finish the implementation of multiple tests
......
...@@ -4614,7 +4614,7 @@ do_spec_1 (spec, inswitch, soft_matched_part) ...@@ -4614,7 +4614,7 @@ do_spec_1 (spec, inswitch, soft_matched_part)
q = v; q = v;
while (ISDIGIT (*q)) while (ISDIGIT (*q))
q++; q++;
if (*q != 0 && *q != ' ' && *q != '.' && *q != '-') if (*q != 0 && q > v && *q != ' ' && *q != '.' && *q != '-')
abort (); abort ();
if (q > v) if (q > v)
......
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