diff options
author | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-05-22 19:42:30 +0000 |
---|---|---|
committer | jason <jason@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-05-22 19:42:30 +0000 |
commit | 2e7ca5794ac06891be086dbe5b5ea94d5ea8f2d9 (patch) | |
tree | a6c71baab918f558fc7349ea894a709dbd762e5a /gcc/cp/tree.c | |
parent | 1d371f9109d215d70420edcd9e72e52d3cc60b51 (diff) | |
download | gcc-2e7ca5794ac06891be086dbe5b5ea94d5ea8f2d9.tar.gz |
* class.c, cp-tree.h, rtti.c: Remove com_interface attribute support.
* tree.c (cp_valid_lang_attribute): Warn about use of com_interface
attribute.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@42465 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/tree.c')
-rw-r--r-- | gcc/cp/tree.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c index 65ba7f6c55d..2dfc567caef 100644 --- a/gcc/cp/tree.c +++ b/gcc/cp/tree.c @@ -2236,12 +2236,7 @@ cp_valid_lang_attribute (attr_name, attr_args, decl, type) } if (is_attribute_p ("com_interface", attr_name)) { - if (! flag_vtable_thunks) - { - error ("`com_interface' only supported with -fvtable-thunks"); - return 0; - } - + static int warned; if (attr_args != NULL_TREE || decl != NULL_TREE || ! CLASS_TYPE_P (type) @@ -2251,6 +2246,9 @@ cp_valid_lang_attribute (attr_name, attr_args, decl, type) return 0; } + if (! warned++) + warning ("\ +`com_interface' is obsolete; g++ vtables are now COM-compatible by default"); return 1; } else if (is_attribute_p ("init_priority", attr_name)) |