FreeBSD/contrib/gcc/varasm.c
/* Set the symbol_referenced flag for DECL and notify callgraph.  */
Set the symbol_referenced flag for DECL and notify callgraph.
Set the symbol_referenced flag for DECL and notify callgraph .
void
mark_decl_referenced (tree decl)
{
  if (TREE_CODE (decl) == FUNCTION_DECL)
    {
      struct cgraph_node *node = cgraph_node (decl);
      if (!DECL_EXTERNAL (decl)
	  && (!node->local.vtable_method || !cgraph_global_info_ready
	      || !node->local.finalized))
	cgraph_mark_needed_node (node);
    }
  else if (TREE_CODE (decl) == VAR_DECL)
    {
      struct cgraph_varpool_node *node = cgraph_varpool_node (decl);
      cgraph_varpool_mark_needed_node (node);
      node->force_output = true;
    }
}
void mark_decl_referenced ( tree decl ) { if ( TREE_CODE ( decl ) == FUNCTION_DECL ) { struct cgraph_node * node = cgraph_node ( decl ) ; if ( ! DECL_EXTERNAL ( decl ) && ( ! node -> local . vtable_method || ! cgraph_global_info_ready || ! node -> local . finalized ) ) cgraph_mark_needed_node ( node ) ; } else if ( TREE_CODE ( decl ) == VAR_DECL ) { struct cgraph_varpool_node * node = cgraph_varpool_node ( decl ) ; cgraph_varpool_mark_needed_node ( node ) ; node -> force_output = true ; } }
Set the symbol_referenced flag for DECL and notify callgraph.
Set the symbol_referenced flag for DECL and notify callgraph .
/* Extern inline functions don't become needed when referenced.
	 If we know a method will be emitted in other TU and no new
	 functions can be marked reachable, just use the external
	 definition.  */ /* C++ frontend use mark_decl_references to force COMDAT variables
         to be output that might appear dead otherwise.  */ /* else do nothing - we can get various sorts of CST nodes here,
     which do not need to be marked.  */