aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.h
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2011-08-04 09:40:24 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2011-08-04 09:40:24 +0200
commit8dd00781e17a65c4344681e13f763f8b41880c61 (patch)
tree7fb650606fc204d2c6c911f55570dd8f43df158c /gcc/tree.h
parent9434c32ec698e22420295be3bccf9d2c91967859 (diff)
downloadgcc-8dd00781e17a65c4344681e13f763f8b41880c61.zip
gcc-8dd00781e17a65c4344681e13f763f8b41880c61.tar.gz
gcc-8dd00781e17a65c4344681e13f763f8b41880c61.tar.bz2
re PR middle-end/49905 (Better sanity checking on sprintf src & dest to produce warning for dodgy code ?)
PR middle-end/49905 * tree.h (init_attributes): New prototype. * attribs.c (init_attributes): No longer static. * decl.c (cxx_init_decl_processing): Add alloc_size (1) attribute for operator new and operator new []. Call init_attributes. * g++.dg/ext/builtin-object-size3.C: New test. From-SVN: r177316
Diffstat (limited to 'gcc/tree.h')
-rw-r--r--gcc/tree.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/tree.h b/gcc/tree.h
index 6b13a2a..367c7b9 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -5547,6 +5547,8 @@ extern bool must_pass_in_stack_var_size_or_pad (enum machine_mode, const_tree);
extern const struct attribute_spec *lookup_attribute_spec (const_tree);
+extern void init_attributes (void);
+
/* Process the attributes listed in ATTRIBUTES and install them in *NODE,
which is either a DECL (including a TYPE_DECL) or a TYPE. If a DECL,
it should be modified in place; if a TYPE, a copy should be created