aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorSandra Loosemore <sandra@codesourcery.com>2016-04-16 19:22:52 -0400
committerSandra Loosemore <sandra@gcc.gnu.org>2016-04-16 19:22:52 -0400
commita4186552060795347f4b97a7ef451acd4f9bb004 (patch)
tree073df4b4c10cb44dec5d6d77bd939f6ff0e9dbc8 /gcc
parentcc950f9882d404b66cecae04519bb42a3c13d7f3 (diff)
downloadgcc-a4186552060795347f4b97a7ef451acd4f9bb004.zip
gcc-a4186552060795347f4b97a7ef451acd4f9bb004.tar.gz
gcc-a4186552060795347f4b97a7ef451acd4f9bb004.tar.bz2
re PR target/1078 (Problems with attributes documentation)
2016-04-16 Sandra Loosemore <sandra@codesourcery.com> PR target/1078 gcc/cp/ * tree.c (cxx_attribute_table): Remove "com_interface" entry. (handle_com_interface_attribute): Delete. From-SVN: r235066
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog7
-rw-r--r--gcc/cp/tree.c32
2 files changed, 7 insertions, 32 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index ad7a246..1dd48b6 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,10 @@
+2016-04-16 Sandra Loosemore <sandra@codesourcery.com>
+
+ PR target/1078
+
+ * tree.c (cxx_attribute_table): Remove "com_interface" entry.
+ (handle_com_interface_attribute): Delete.
+
2016-04-15 Jason Merrill <jason@redhat.com>
PR c++/70685
diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c
index df2981f..e34215c 100644
--- a/gcc/cp/tree.c
+++ b/gcc/cp/tree.c
@@ -43,7 +43,6 @@ static tree verify_stmt_tree_r (tree *, int *, void *);
static tree build_local_temp (tree);
static tree handle_java_interface_attribute (tree *, tree, tree, int, bool *);
-static tree handle_com_interface_attribute (tree *, tree, tree, int, bool *);
static tree handle_init_priority_attribute (tree *, tree, tree, int, bool *);
static tree handle_abi_tag_attribute (tree *, tree, tree, int, bool *);
@@ -3542,8 +3541,6 @@ const struct attribute_spec cxx_attribute_table[] =
affects_type_identity } */
{ "java_interface", 0, 0, false, false, false,
handle_java_interface_attribute, false },
- { "com_interface", 0, 0, false, false, false,
- handle_com_interface_attribute, false },
{ "init_priority", 1, 1, true, false, false,
handle_init_priority_attribute, false },
{ "abi_tag", 1, -1, false, false, false,
@@ -3576,35 +3573,6 @@ handle_java_interface_attribute (tree* node,
return NULL_TREE;
}
-/* Handle a "com_interface" attribute; arguments as in
- struct attribute_spec.handler. */
-static tree
-handle_com_interface_attribute (tree* node,
- tree name,
- tree /*args*/,
- int /*flags*/,
- bool* no_add_attrs)
-{
- static int warned;
-
- *no_add_attrs = true;
-
- if (DECL_P (*node)
- || !CLASS_TYPE_P (*node)
- || *node != TYPE_MAIN_VARIANT (*node))
- {
- warning (OPT_Wattributes, "%qE attribute can only be applied "
- "to class definitions", name);
- return NULL_TREE;
- }
-
- if (!warned++)
- warning (0, "%qE is obsolete; g++ vtables are now COM-compatible by default",
- name);
-
- return NULL_TREE;
-}
-
/* Handle an "init_priority" attribute; arguments as in
struct attribute_spec.handler. */
static tree