aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-family/c-common.h
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2016-04-25 13:21:49 -0400
committerJason Merrill <jason@gcc.gnu.org>2016-04-25 13:21:49 -0400
commitd067e05f0e9a765e9ce60938aac1a1c99701cc33 (patch)
tree264530e0fbdd09de1ee921078acbe9204f96ca60 /gcc/c-family/c-common.h
parent4dfaa9631958d036d4de44ebfa5a1bcfa92462c4 (diff)
downloadgcc-d067e05f0e9a765e9ce60938aac1a1c99701cc33.zip
gcc-d067e05f0e9a765e9ce60938aac1a1c99701cc33.tar.gz
gcc-d067e05f0e9a765e9ce60938aac1a1c99701cc33.tar.bz2
Implement C++17 [[maybe_unused]] attribute.
gcc/ * attribs.c (register_scoped_attributes): Fix logic. * attribs.h: Declare register_scoped_attributes. c-family/ * c-common.c (handle_unused_attribute): Accept CONST_DECL. No longer static. * c-common.h: Declare it. * c-lex.c (c_common_has_attribute): Add maybe_unused. cp/ * tree.c (std_attribute_table): New. (init_tree): Register it. From-SVN: r235414
Diffstat (limited to 'gcc/c-family/c-common.h')
-rw-r--r--gcc/c-family/c-common.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/c-family/c-common.h b/gcc/c-family/c-common.h
index 663e457..4c43a35 100644
--- a/gcc/c-family/c-common.h
+++ b/gcc/c-family/c-common.h
@@ -790,6 +790,7 @@ extern void check_function_arguments_recurse (void (*)
unsigned HOST_WIDE_INT);
extern bool check_builtin_function_arguments (tree, int, tree *);
extern void check_function_format (tree, int, tree *);
+extern tree handle_unused_attribute (tree *, tree, tree, int, bool *);
extern tree handle_format_attribute (tree *, tree, tree, int, bool *);
extern tree handle_format_arg_attribute (tree *, tree, tree, int, bool *);
extern bool attribute_takes_identifier_p (const_tree);