PR 15236 pedantic switch modifies treatment of non-ISO compliant enumerations
Joseph S. Myers
joseph@codesourcery.com
Tue Aug 12 14:28:00 GMT 2008
On Tue, 5 Aug 2008, Manuel López-Ibáñez wrote:
> Bootstrapped and regression tested on x86_64-pc-linux-gnu with
> --enable-languages=all.
>
> OK for trunk?
>
> 2008-08-05 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
> PR 15236
> * diagnostic.c (pedwarn_at): New.
> * toplev.h (pedwarn_at): Declare.
> * c-tree.h (build_enumerator): Update declaration.
> * c-decl.c (finish_enum): Update comment.
> (build_enumerator): Take a location parameter. Give a pedwarn but do
> not perform any conversion.
> * c-parser.c (c_parser_enum_specifier): Set correct location for enumerator.
>
> testsuite/
> * gcc.dg/pr15236.c: New.
> * gcc.dg/torture/pr25183.c: Update.
The C parts of this patch are OK.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Gcc-patches
mailing list