This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Expand the definition of gnu89 slightly
- From: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- To: Matthew Wilcox <willy at debian dot org>
- Cc: <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 4 Feb 2003 19:09:37 +0000 (GMT)
- Subject: Re: Expand the definition of gnu89 slightly
On Tue, 4 Feb 2003, Matthew Wilcox wrote:
> 2003-02-04 Matthew Wilcox <matthew@wil.cx>
>
> * c-decl.c: Only warn about multiple const, restrict or volatile
> in -std=c89 mode, not in -std=gnu89.
Please instead submit a patch that conditions all these duplicate
qualifier warnings (there's at least one other place in the file that can
generate them) on pedantic && !flag_isoc99. pedantic rather than flag_iso
is the appropriate test. You also need to add a testcase that the
warnings do not occur in -std=c89 mode without -pedantic (there are
already such testcases that the warning does occur with -pedantic,
gcc.dg/c90-idem-qual-*.c), and to state on what platform the patch was
bootstrapped with no regressions.
--
Joseph S. Myers
jsm28@cam.ac.uk