(used_arg): Fix multilib_matches parsing to not corrupt entry parameter.
authorRichard Kenner <kenner@gcc.gnu.org>
Tue, 24 Sep 1996 12:28:52 +0000 (08:28 -0400)
committerRichard Kenner <kenner@gcc.gnu.org>
Tue, 24 Sep 1996 12:28:52 +0000 (08:28 -0400)
From-SVN: r12834

gcc/gcc.c

index ff3815144a02bacc5b8a8d1df35c259ac5efd2d3..081596f721cfe0b632db975d4d35765dd876bfb0 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -4944,8 +4944,8 @@ used_arg (p, len)
 
       /* Break multilib_matches into the component strings of string and replacement
          string */
-      for (p = multilib_matches; *p != '\0'; p++)
-       if (*p == ';')
+      for (q = multilib_matches; *q != '\0'; q++)
+       if (*q == ';')
          cnt++;
 
       matches = (struct mswitchstr *) alloca ((sizeof (struct mswitchstr)) * cnt);