m3-sys/m3cc/gcc-apple/gcc/c-decl.c
/* A subroutine of c_write_global_declarations.  Perform final processing
   on one file scope's declarations (or the external scope's declarations),
   GLOBALS.  */
A subroutine of c_write_global_declarations.  Perform final processing
on one file scope's declarations (or the external scope's declarations),
GLOBALS.
A subroutine of c_write_global_declarations . Perform final processing on one file scope ' s declarations ( or the external scope ' s declarations ) GLOBALS .
static void
c_write_global_declarations_1 (tree globals)
{
  tree decl;
  bool reconsider;
  for (decl = globals; decl; decl = TREE_CHAIN (decl))
    {
      if (TREE_CODE (decl) == FUNCTION_DECL
	  && DECL_INITIAL (decl) == 0
	  && DECL_EXTERNAL (decl)
	  && !TREE_PUBLIC (decl)
	  && C_DECL_USED (decl))
	{
	  pedwarn ("%q+F used but never defined", decl);
	  TREE_NO_WARNING (decl) = 1;
	}
      wrapup_global_declaration_1 (decl);
    }
  do
    {
      reconsider = false;
      for (decl = globals; decl; decl = TREE_CHAIN (decl))
	reconsider |= wrapup_global_declaration_2 (decl);
    }
  while (reconsider);
  for (decl = globals; decl; decl = TREE_CHAIN (decl))
    check_global_declaration_1 (decl);
}
static void c_write_global_declarations_1 ( tree globals ) { tree decl ; bool reconsider ; for ( decl = globals ; decl ; decl = TREE_CHAIN ( decl ) ) { if ( TREE_CODE ( decl ) == FUNCTION_DECL && DECL_INITIAL ( decl ) == 0 && DECL_EXTERNAL ( decl ) && ! TREE_PUBLIC ( decl ) && C_DECL_USED ( decl ) ) { pedwarn ( " " , decl ) ; TREE_NO_WARNING ( decl ) = 1 ; } wrapup_global_declaration_1 ( decl ) ; } do { reconsider = false ; for ( decl = globals ; decl ; decl = TREE_CHAIN ( decl ) ) reconsider |= wrapup_global_declaration_2 ( decl ) ; } while ( reconsider ) ; for ( decl = globals ; decl ; decl = TREE_CHAIN ( decl ) ) check_global_declaration_1 ( decl ) ; }
A subroutine of c_write_global_declarations.
A subroutine of c_write_global_declarations .
/* Process the decls in the order they were written.  */ /* Check for used but undefined static functions using the C
	 standard's definition of "used", and set TREE_NO_WARNING so
	 that check_global_declarations doesn't repeat the check.  */