This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
c-common.c looping
- To: egcs at cygnus dot com
- Subject: c-common.c looping
- From: Robert Lipe <robertl at dgii dot com>
- Date: Wed, 17 Dec 1997 12:00:55 -0600
- Reply-To: egcs at cygnus dot com
I've admittedly only been skimming the list lately, and the archives
are a little dated, so this may be a rerun. Sorry.
While building the f77 stuff, my gcc loops endlessly on 'repeated %s flag
in format'.
The offending code (that code that loops, not the code that is actually
responsible for the warning) seems to be this thing in c-common.c. If
the first test passes, format_chars is never incremented.
while (*format_chars != 0 && index (" +#0-", *format_chars) != 0)
{
if (index (flag_chars, *format_chars) != 0)
{
sprintf (message, "repeated `%c' flag in format",
*format_chars);
warning (message);
}
else
{
i = strlen (flag_chars);
flag_chars[i++] = *format_chars++;
flag_chars[i] = 0;
}
}
--
Robert Lipe http://www.dgii.com/people/robertl robertl@dgii.com