public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* c-common.c looping
@ 1997-12-17 10:01 Robert Lipe
  0 siblings, 0 replies; only message in thread
From: Robert Lipe @ 1997-12-17 10:01 UTC (permalink / raw)
  To: egcs

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1997-12-17 10:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-12-17 10:01 c-common.c looping Robert Lipe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).