Re: Warning for functions called before declared inline

2011-12-01 Thread Joseph S. Myers
On Thu, 1 Dec 2011, Steven Bosscher wrote: > On Thu, Dec 1, 2011 at 7:42 PM, Joseph S. Myers > 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 t

Re: Warning for functions called before declared inline

2011-12-01 Thread Eric Botcazou
> Today I ran into a problem building today's GCC trunk with an older > GCC 4.3. There is a warning in libcpp/macro.c about > tokens_buff_remove_last_token declared inline after being called. A previous instance: http://gcc.gnu.org/ml/gcc-patches/2011-04/msg01426.html -- Eric Botcazou

Re: Warning for functions called before declared inline

2011-12-01 Thread Steven Bosscher
On Thu, Dec 1, 2011 at 7:42 PM, Joseph S. Myers 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. N

Re: Warning for functions called before declared inline

2011-12-01 Thread Joseph S. Myers
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. > One reason to bring the warnings back could be that there is now

Warning for functions called before declared inline

2011-12-01 Thread Steven Bosscher
Hello, Today I ran into a problem building today's GCC trunk with an older GCC 4.3. There is a warning in libcpp/macro.c about tokens_buff_remove_last_token declared inline after being called. (This is apparently valid C99 but is it also valid C89?) After some digging and diffing, it turns out tha