This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]