From: zack Date: Tue, 9 May 2000 21:55:11 +0000 (+0000) Subject: * gcc.c (used_arg): Skip over a semicolon at the end of the X-Git-Tag: upstream/4.9.2~101538 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=401574b8785a3d1436db807006faf9b7c4c3afb5;p=platform%2Fupstream%2Flinaro-gcc.git * gcc.c (used_arg): Skip over a semicolon at the end of the split-up loop; don't break out of it. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33807 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7f855b7..3fe43ec 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,8 @@ 2000-05-09 Zack Weinberg + * gcc.c (used_arg): Skip over a semicolon at the end of the + split-up loop; don't break out of it. + * Makefile.in (WARN_CFLAGS): Add -Wwrite-strings. (tree.o): Depend on output.h. diff --git a/gcc/gcc.c b/gcc/gcc.c index 270e4ed..334e72b 100644 --- a/gcc/gcc.c +++ b/gcc/gcc.c @@ -5993,8 +5993,8 @@ used_arg (p, len) } matches[i].rep_len = q - matches[i].replace; i++; - if (*q != ';') - break; + if (*q == ';') + q++; } /* Now build a list of the replacement string for switches that we care