Re: [C PATCH] Implement -Wc90-c99-compat (PR c/51849)

2014-08-09 Thread Marek Polacek
On Thu, Aug 07, 2014 at 05:10:43PM +, Joseph S. Myers wrote: > On Thu, 31 Jul 2014, Marek Polacek wrote: > > > A few issues: currently we don't warn (in -std=c90 -pedantic mode) > > about the usage of __func__ and _Pragma (possible others - va_copy?). > > I'm hoping this is not that important

Re: [C PATCH] Implement -Wc90-c99-compat (PR c/51849)

2014-08-07 Thread Joseph S. Myers
On Thu, 31 Jul 2014, Marek Polacek wrote: > A few issues: currently we don't warn (in -std=c90 -pedantic mode) > about the usage of __func__ and _Pragma (possible others - va_copy?). > I'm hoping this is not that important though. For restrict/inline, > in GNU90 mode we just don't compile the cod

Re: [C PATCH] Implement -Wc90-c99-compat (PR c/51849)

2014-08-06 Thread Marek Polacek
Ping. On Thu, Jul 31, 2014 at 09:39:21AM +0200, Marek Polacek wrote: > One of the prerequisites to moving the default from gnu89 to gnu11 > is that we need both -Wc90-c99-compat and -Wc99-c11-compat options. > This patch implements the former. Its purpose is similar to > -Wtraditional - that peop

[C PATCH] Implement -Wc90-c99-compat (PR c/51849)

2014-07-31 Thread Marek Polacek
One of the prerequisites to moving the default from gnu89 to gnu11 is that we need both -Wc90-c99-compat and -Wc99-c11-compat options. This patch implements the former. Its purpose is similar to -Wtraditional - that people who build code in C99/C11 mode can easily check whether the code uses somet