FreeBSD/contrib/gcc/varasm.c
/* Declare DECL to be a weak symbol.  */
Declare DECL to be a weak symbol.
Declare DECL to be a weak symbol .
void
declare_weak (tree decl)
{
  if (! TREE_PUBLIC (decl))
    error ("weak declaration of %q+D must be public", decl);
  else if (TREE_CODE (decl) == FUNCTION_DECL && TREE_ASM_WRITTEN (decl))
    error ("weak declaration of %q+D must precede definition", decl);
  else if (SUPPORTS_WEAK)
    {
      if (! DECL_WEAK (decl))
	weak_decls = tree_cons (NULL, decl, weak_decls);
    }
  else
    warning (0, "weak declaration of %q+D not supported", decl);
  mark_weak (decl);
}
void declare_weak ( tree decl ) { if ( ! TREE_PUBLIC ( decl ) ) error ( " " , decl ) ; else if ( TREE_CODE ( decl ) == FUNCTION_DECL && TREE_ASM_WRITTEN ( decl ) ) error ( " " , decl ) ; else if ( SUPPORTS_WEAK ) { if ( ! DECL_WEAK ( decl ) ) weak_decls = tree_cons ( NULL , decl , weak_decls ) ; } else warning ( 0 , " " , decl ) ; mark_weak ( decl ) ; }
Declare DECL to be a weak symbol.
Declare DECL to be a weak symbol .