FreeBSD/contrib/gcc/cp/method.c
/* Create a static alias to function.  */
Create a static alias to function.
Create a static alias to function .
tree
make_alias_for (tree function, tree newid)
{
  tree alias = build_decl (FUNCTION_DECL, newid, TREE_TYPE (function));
  DECL_LANG_SPECIFIC (alias) = DECL_LANG_SPECIFIC (function);
  cxx_dup_lang_specific_decl (alias);
  DECL_CONTEXT (alias) = NULL;
  TREE_READONLY (alias) = TREE_READONLY (function);
  TREE_THIS_VOLATILE (alias) = TREE_THIS_VOLATILE (function);
  TREE_PUBLIC (alias) = 0;
  DECL_INTERFACE_KNOWN (alias) = 1;
  DECL_NOT_REALLY_EXTERN (alias) = 1;
  DECL_THIS_STATIC (alias) = 1;
  DECL_SAVED_FUNCTION_DATA (alias) = NULL;
  DECL_DESTRUCTOR_P (alias) = 0;
  DECL_CONSTRUCTOR_P (alias) = 0;
  DECL_CLONED_FUNCTION (alias) = NULL_TREE;
  DECL_EXTERNAL (alias) = 0;
  DECL_ARTIFICIAL (alias) = 1;
  DECL_NO_STATIC_CHAIN (alias) = 1;
  DECL_PENDING_INLINE_P (alias) = 0;
  DECL_INLINE (alias) = 0;
  DECL_DECLARED_INLINE_P (alias) = 0;
  DECL_DEFERRED_FN (alias) = 0;
  DECL_USE_TEMPLATE (alias) = 0;
  DECL_TEMPLATE_INSTANTIATED (alias) = 0;
  DECL_TEMPLATE_INFO (alias) = NULL;
  DECL_INITIAL (alias) = error_mark_node;
  TREE_ADDRESSABLE (alias) = 1;
  TREE_USED (alias) = 1;
  SET_DECL_ASSEMBLER_NAME (alias, DECL_NAME (alias));
  TREE_SYMBOL_REFERENCED (DECL_ASSEMBLER_NAME (alias)) = 1;
  return alias;
}
tree make_alias_for ( tree function , tree newid ) { tree alias = build_decl ( FUNCTION_DECL , newid , TREE_TYPE ( function ) ) ; DECL_LANG_SPECIFIC ( alias ) = DECL_LANG_SPECIFIC ( function ) ; cxx_dup_lang_specific_decl ( alias ) ; DECL_CONTEXT ( alias ) = NULL ; TREE_READONLY ( alias ) = TREE_READONLY ( function ) ; TREE_THIS_VOLATILE ( alias ) = TREE_THIS_VOLATILE ( function ) ; TREE_PUBLIC ( alias ) = 0 ; DECL_INTERFACE_KNOWN ( alias ) = 1 ; DECL_NOT_REALLY_EXTERN ( alias ) = 1 ; DECL_THIS_STATIC ( alias ) = 1 ; DECL_SAVED_FUNCTION_DATA ( alias ) = NULL ; DECL_DESTRUCTOR_P ( alias ) = 0 ; DECL_CONSTRUCTOR_P ( alias ) = 0 ; DECL_CLONED_FUNCTION ( alias ) = NULL_TREE ; DECL_EXTERNAL ( alias ) = 0 ; DECL_ARTIFICIAL ( alias ) = 1 ; DECL_NO_STATIC_CHAIN ( alias ) = 1 ; DECL_PENDING_INLINE_P ( alias ) = 0 ; DECL_INLINE ( alias ) = 0 ; DECL_DECLARED_INLINE_P ( alias ) = 0 ; DECL_DEFERRED_FN ( alias ) = 0 ; DECL_USE_TEMPLATE ( alias ) = 0 ; DECL_TEMPLATE_INSTANTIATED ( alias ) = 0 ; DECL_TEMPLATE_INFO ( alias ) = NULL ; DECL_INITIAL ( alias ) = error_mark_node ; TREE_ADDRESSABLE ( alias ) = 1 ; TREE_USED ( alias ) = 1 ; SET_DECL_ASSEMBLER_NAME ( alias , DECL_NAME ( alias ) ) ; TREE_SYMBOL_REFERENCED ( DECL_ASSEMBLER_NAME ( alias ) ) = 1 ; return alias ; }
Create a static alias to function.
Create a static alias to function .