diff options
author | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2008-08-13 10:19:03 +0000 |
---|---|---|
committer | Manuel López-Ibáñez <manu@gcc.gnu.org> | 2008-08-13 10:19:03 +0000 |
commit | 85790e667775932ee784b9c1636dafcc66ac32d3 (patch) | |
tree | 1628ba21d162d8c904b22105327717febc42c784 /gcc/c-tree.h | |
parent | 374035cb20b323d0e95559499fc0089aa4cedff9 (diff) | |
download | gcc-85790e667775932ee784b9c1636dafcc66ac32d3.zip gcc-85790e667775932ee784b9c1636dafcc66ac32d3.tar.gz gcc-85790e667775932ee784b9c1636dafcc66ac32d3.tar.bz2 |
re PR c/15236 (pedantic switch modifies treatment of non-ISO compliant enumerations)
2008-08-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
PR c/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.
From-SVN: r139050
Diffstat (limited to 'gcc/c-tree.h')
-rw-r--r-- | gcc/c-tree.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-tree.h b/gcc/c-tree.h index d3e3695..fc76ee3 100644 --- a/gcc/c-tree.h +++ b/gcc/c-tree.h @@ -462,7 +462,7 @@ extern void c_print_identifier (FILE *, tree, int); extern int quals_from_declspecs (const struct c_declspecs *); extern struct c_declarator *build_array_declarator (tree, struct c_declspecs *, bool, bool); -extern tree build_enumerator (struct c_enum_contents *, tree, tree); +extern tree build_enumerator (struct c_enum_contents *, tree, tree, location_t); extern tree check_for_loop_decls (void); extern void mark_forward_parm_decls (void); extern void declare_parm_level (void); |