diff options
author | Jakub Jelinek <jakub@redhat.com> | 2011-08-04 09:40:24 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2011-08-04 09:40:24 +0200 |
commit | 8dd00781e17a65c4344681e13f763f8b41880c61 (patch) | |
tree | 7fb650606fc204d2c6c911f55570dd8f43df158c /gcc/tree.h | |
parent | 9434c32ec698e22420295be3bccf9d2c91967859 (diff) | |
download | gcc-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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |