From: Richard Kenner Date: Tue, 24 Sep 1996 12:28:52 +0000 (-0400) Subject: (used_arg): Fix multilib_matches parsing to not corrupt entry parameter. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1a0bdd2991c6717edb37cbdcfae03842cc3b0a38;p=gcc.git (used_arg): Fix multilib_matches parsing to not corrupt entry parameter. From-SVN: r12834 --- diff --git a/gcc/gcc.c b/gcc/gcc.c index ff3815144a0..081596f721c 100644 --- 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);