FreeBSD/contrib/gcc/cp/mangle.c
/* Add NODE as a substitution candidate.  NODE must not already be on
   the list of candidates.  */
Add NODE as a substitution candidate.  NODE must not already be on
the list of candidates.
Add NODE as a substitution candidate . NODE must not already be on the list of candidates .
static void
add_substitution (tree node)
{
  tree c;
  if (DEBUG_MANGLE)
    fprintf (stderr, "  ++ add_substitution (%s at %10p)\n",
	     tree_code_name[TREE_CODE (node)], (void *) node);
  c = canonicalize_for_substitution (node);
  if (DEBUG_MANGLE && c != node)
    fprintf (stderr, "  ++ using candidate (%s at %10p)\n",
	     tree_code_name[TREE_CODE (node)], (void *) node);
  node = c;
#if ENABLE_CHECKING
  {
    int i;
    tree candidate;
    for (i = 0; VEC_iterate (tree, G.substitutions, i, candidate); i++)
      {
	gcc_assert (!(DECL_P (node) && node == candidate));
	gcc_assert (!(TYPE_P (node) && TYPE_P (candidate)
		      && same_type_p (node, candidate)));
      }
  }
#endif 
  VEC_safe_push (tree, gc, G.substitutions, node);
  if (DEBUG_MANGLE)
    dump_substitution_candidates ();
}
static void add_substitution ( tree node ) { tree c ; if ( DEBUG_MANGLE ) fprintf ( stderr , " \n " , tree_code_name [ TREE_CODE ( node ) ] , ( void * ) node ) ; c = canonicalize_for_substitution ( node ) ; if ( DEBUG_MANGLE && c != node ) fprintf ( stderr , " \n " , tree_code_name [ TREE_CODE ( node ) ] , ( void * ) node ) ; node = c ; #if ENABLE_CHECKING { int i ; tree candidate ; for ( i = 0 ; VEC_iterate ( tree , G . substitutions , i , candidate ) ; i ++ ) { gcc_assert ( ! ( DECL_P ( node ) && node == candidate ) ) ; gcc_assert ( ! ( TYPE_P ( node ) && TYPE_P ( candidate ) && same_type_p ( node , candidate ) ) ) ; } } #endif VEC_safe_push ( tree , gc , G . substitutions , node ) ; if ( DEBUG_MANGLE ) dump_substitution_candidates ( ) ; }
Add NODE as a substitution candidate.
Add NODE as a substitution candidate .
/* Get the canonicalized substitution candidate for NODE.  */ /* Make sure NODE isn't already a candidate.  */ /* ENABLE_CHECKING */ /* Put the decl onto the varray of substitution candidates.  */