Fix spec %v3
authorMichael Meissner <meissner@redhat.com>
Sun, 18 Jun 2000 02:37:02 +0000 (02:37 +0000)
committerMichael Meissner <meissner@gcc.gnu.org>
Sun, 18 Jun 2000 02:37:02 +0000 (02:37 +0000)
From-SVN: r34586

gcc/ChangeLog
gcc/gcc.c

index 263dd75..f23cfe9 100644 (file)
@@ -1,3 +1,8 @@
+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>
 
        * fixinc/check.tpl:  finish the implementation of multiple tests
index f1bf977..d11bba5 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -4614,7 +4614,7 @@ do_spec_1 (spec, inswitch, soft_matched_part)
              q = v;
              while (ISDIGIT (*q))
                q++;
-             if (*q != 0 && *q != ' ' && *q != '.' && *q != '-')
+             if (*q != 0 && q > v && *q != ' ' && *q != '.' && *q != '-')
                abort ();
 
               if (q > v)