aboutsummaryrefslogtreecommitdiff
path: root/gcc/attribs.h
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2016-04-25 17:21:49 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2016-04-25 17:21:49 +0000
commitf5d49c145807afc0ce3dce26e1cd7603a4bd13da (patch)
tree264530e0fbdd09de1ee921078acbe9204f96ca60 /gcc/attribs.h
parent282818ad0fbb422f13beb71c86f5d12389150966 (diff)
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@235414 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/attribs.h')
-rw-r--r--gcc/attribs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/attribs.h b/gcc/attribs.h
index 9e64a7a7e80..23d30435d1d 100644
--- a/gcc/attribs.h
+++ b/gcc/attribs.h
@@ -38,4 +38,7 @@ extern tree get_attribute_name (const_tree);
extern void apply_tm_attr (tree, tree);
extern tree make_attribute (const char *, const char *, tree);
+extern struct scoped_attributes* register_scoped_attributes (const struct attribute_spec *,
+ const char *);
+
#endif // GCC_ATTRIBS_H