This is an automated email from the git hooks/post-receive script.
unknown user pushed a commit to branch aoliva/libcp1 in repository gcc.
commit 86a02fbec424630bc534f738a759568452b5a02b Author: Alexandre Oliva aoliva@redhat.com Date: Tue Jul 28 16:35:34 2015 -0300
libcp1plugin: drop obsolete plugin_build_member_decl draft --- libcc1/libcp1plugin.cc | 99 -------------------------------------------------- 1 file changed, 99 deletions(-)
diff --git a/libcc1/libcp1plugin.cc b/libcc1/libcp1plugin.cc index b4d9ee28..d7b181d 100644 --- a/libcc1/libcp1plugin.cc +++ b/libcc1/libcp1plugin.cc @@ -1026,105 +1026,6 @@ plugin_error (cc1_plugin::connection *, return convert_out (error_mark_node); }
-#if 0 // FIXME: remove me. -gcc_decl -plugin_build_member_decl (cc1_plugin::connection *self, - gcc_decl scope_in, - const char *name, - enum gcc_cp_symbol_kind sym_kind, - gcc_type sym_type_in, - gcc_address address, - const char *filename, - unsigned int line_number) -{ - tree scope = convert_in (scope_in); - tree sym_type = convert_in (sym_type_in); - tree decl; - tree identifier; - - if (!scope) - scope = global_namespace; - - if (name) - identifier = get_identifier (name); - else - identifier = NULL_TREE; - - source_location loc = ctx->get_source_location (filename, line_number); - - switch (sym_kind) { - case GCC_CP_SYMBOL_TYPEDEF: - gcc_assert (identifier); - gcc_assert (!address); - decl = build_decl (loc, TYPE_DECL, identifier, sym_type); - break; - - case GCC_CP_SYMBOL_VARIABLE: - gcc_assert (TREE_CODE (scope) == NAMESPACE_SCOPE - || RECORD_OR_UNION_CODE_P (TREE_CODE (scope))); - gcc_assert (identifier); - gcc_assert (address); - decl = build_decl (loc, VAR_DECL, identifier, sym_type); - DECL_EXTERN (decl) = 1; - break; - - case GCC_CP_SYMBOL_FUNCTION: - { - bool method_p = TREE_CODE (sym_type) == METHOD_TYPE; - bool abstract_p = method_p && !address; - bool virtual_p = abstract_p || method_p && (address & 1) != 0; - - gcc_assert (identifier); - if (method_p) - gcc_assert (RECORD_OR_UNION_CODE_P (TREE_CODE (scope))); - else - { - gcc_assert (address); - gcc_assert (TREE_CODE (scope) == NAMESPACE_DECL - || RECORD_OR_UNION_CODE_P (TREE_CODE (scope))); - } - - if (virtual_p && !abstract_p) - address--; - - decl = build_lang_decl (FUNCTION_DECL, identifier, sym_type); - DECL_EXTERN (decl) = 1; - } - break; - - case GCC_CP_SYMBOL_BASE_CLASS: - gcc_assert (!identifier); - gcc_assert (!address); - gcc_assert (sym_type); - // FIXME: xref_basetypes takes a list - return scope_in; - - case GCC_CP_SYMBOL_NAMESPACE: - gcc_assert (!address); - gcc_assert (TREE_CODE (scope) == NAMESPACE_DECL); - decl = build_lang_decl (NAMESPACE_DECL, identifier, void_type_node); - if (identifier && !decl_anon_ns_mem_p (scope)) - TREE_PUBLIC (decl) = 1; - break; - - case GCC_CP_SYMBOL_TYPENAME: - - - case GCC_CP_SYMBOL_LABEL: - default: - error: - gcc_unreachable (); - } - - TREE_USED (decl) = 1; - TREE_ADDRESSABLE (decl) = 1; - DECL_CONTEXT (decl) = FROB_CONTEXT (scope); - /* add the decl and set its address. */ - - return convert_out (ctx->preserve (decl)); -} -#endif -
// Perform GC marking.