re PR target/1078 (Problems with attributes documentation)
authorSandra Loosemore <sandra@codesourcery.com>
Sat, 16 Apr 2016 23:22:52 +0000 (19:22 -0400)
committerSandra Loosemore <sandra@gcc.gnu.org>
Sat, 16 Apr 2016 23:22:52 +0000 (19:22 -0400)
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

gcc/cp/ChangeLog
gcc/cp/tree.c

index ad7a246f2bd1d35bd0a0486b0279ea0a90624ed0..1dd48b6de81d200b46ba0c9c9432187536762281 100644 (file)
@@ -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
index df2981fd3f4279e52de8b247642a401738da89bd..e34215c961eb07d263403a1dac11f5a0b69c577d 100644 (file)
@@ -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