This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

c-common.c looping



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]