From 83a0c799412c955cddce5638e736a263b70742fd Mon Sep 17 00:00:00 2001 From: Zack Weinberg Date: Tue, 9 May 2000 21:55:11 +0000 Subject: [PATCH] gcc.c (used_arg): Skip over a semicolon at the end of the split-up loop; don't break out of it. * gcc.c (used_arg): Skip over a semicolon at the end of the split-up loop; don't break out of it. From-SVN: r33807 --- gcc/ChangeLog | 3 +++ gcc/gcc.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7f855b79f37..3fe43ec3720 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 270e4ed5742..334e72b7e1d 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