From: sandra Date: Sat, 16 Apr 2016 23:22:52 +0000 (+0000) Subject: 2016-04-16 Sandra Loosemore X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=61328205aa536296cdc2ff96fe32c553d90ff739;p=thirdparty%2Fgcc.git 2016-04-16 Sandra Loosemore PR target/1078 gcc/cp/ * tree.c (cxx_attribute_table): Remove "com_interface" entry. (handle_com_interface_attribute): Delete. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@235066 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index ad7a246f2bd1..1dd48b6de81d 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,10 @@ +2016-04-16 Sandra Loosemore + + PR target/1078 + + * tree.c (cxx_attribute_table): Remove "com_interface" entry. + (handle_com_interface_attribute): Delete. + 2016-04-15 Jason Merrill PR c++/70685 diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c index df2981fd3f42..e34215c961eb 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