c-common.c looping

Robert Lipe robertl@dgii.com
Wed Dec 17 10:01:00 GMT 1997


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



More information about the Gcc mailing list