aboutsummaryrefslogtreecommitdiff
path: root/gcc/c/c-tree.h
diff options
context:
space:
mode:
authorMarek Polacek <polacek@redhat.com>2015-09-15 17:19:11 +0000
committerMarek Polacek <mpolacek@gcc.gnu.org>2015-09-15 17:19:11 +0000
commit0e36f5c7c103e2d897fcbc9728fa98768b386f9a (patch)
treeea4ad4601177b57e46c4c68bebdfb4668db9e541 /gcc/c/c-tree.h
parentc33c18cdc6b29a312464cb16996530b47a333c98 (diff)
downloadgcc-0e36f5c7c103e2d897fcbc9728fa98768b386f9a.zip
gcc-0e36f5c7c103e2d897fcbc9728fa98768b386f9a.tar.gz
gcc-0e36f5c7c103e2d897fcbc9728fa98768b386f9a.tar.bz2
re PR c/67580 (Improve error message on missing "struct" tag)
PR c/67580 * c-decl.c (tag_exists_p): New function. * c-parser.c (c_parser_declaration_or_fndef): Give a hint when struct/union/enum keywords are missing. * c-tree.h (tag_exists_p): Declare. * gcc.dg/pr67580.c: New test. From-SVN: r227803
Diffstat (limited to 'gcc/c/c-tree.h')
-rw-r--r--gcc/c/c-tree.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/c/c-tree.h b/gcc/c/c-tree.h
index a3979dd..667529a 100644
--- a/gcc/c/c-tree.h
+++ b/gcc/c/c-tree.h
@@ -701,6 +701,7 @@ extern tree c_omp_reduction_lookup (tree, tree);
extern tree c_check_omp_declare_reduction_r (tree *, int *, void *);
extern void c_pushtag (location_t, tree, tree);
extern void c_bind (location_t, tree, bool);
+extern bool tag_exists_p (enum tree_code, tree);
/* In c-errors.c */
extern void pedwarn_c90 (location_t, int opt, const char *, ...)