On Thu, 1 Dec 2011, Steven Bosscher wrote:

> On Thu, Dec 1, 2011 at 7:42 PM, Joseph S. Myers <jos...@codesourcery.com> 
> wrote:
> > On Thu, 1 Dec 2011, Steven Bosscher wrote:
> >
> >> Is it valid in dialects older than C99 to declare a function static
> >> inline after calling it? Should the warnings be brought back in the
> >> compiler?
> >
> > Older dialects didn't have inline.
> 
> Not even gnu89?

Well, what's valid there is what the compiler accepts.  This is unrelated 
to the way in which gnu89 inline semantics differ from C99, so I see no 
reason to reject it.

> > Building with older GCC should not use -Werror; only later bootstrap
> > stages, or --enable-werror-always, should do so, and
> > --enable-werror-always is meant to be used for building a cross-compiler
> > using the same version of GCC.
> 
> Hm, I didn't do anything special. Just configure --target=arm-eabi,
> then make. Perhaps there is an error in configure.ac.

There must be.  -Werror builds like that simply won't work, because of the 
internal diagnostic formats that 4.3's format checking doesn't understand.

-- 
Joseph S. Myers
jos...@codesourcery.com

Reply via email to