FreeBSD/contrib/gcc/cp/mangle.c
/* Return an identifier for the name of an initialization guard
   variable for indicated VARIABLE.  */
Return an identifier for the name of an initialization guard
variable for indicated VARIABLE.
Return an identifier for the name of an initialization guard variable for indicated VARIABLE .
tree
mangle_guard_variable (const tree variable)
{
  start_mangling (variable, true);
  write_string ("_ZGV");
  if (strncmp (IDENTIFIER_POINTER (DECL_NAME (variable)), "_ZGR", 4) == 0)
    write_string (IDENTIFIER_POINTER (DECL_NAME (variable)) + 4);
  else
    write_name (variable, 0);
  return get_identifier_nocopy (finish_mangling (false));
}
tree mangle_guard_variable ( const tree variable ) { start_mangling ( variable , true ) ; write_string ( " " ) ; if ( strncmp ( IDENTIFIER_POINTER ( DECL_NAME ( variable ) ) , " " , 4 ) == 0 ) write_string ( IDENTIFIER_POINTER ( DECL_NAME ( variable ) ) + 4 ) ; else write_name ( variable , 0 ) ; return get_identifier_nocopy ( finish_mangling ( false ) ) ; }
Return an identifier for the name of an initialization guard
variable for indicated VARIABLE.
Return an identifier for the name of an initialization guard variable for indicated VARIABLE .
/*ident_p=*/ /* The name of a guard variable for a reference temporary should refer
       to the reference, not the temporary.  */ /*ignore_local_scope=*/ /*warn=*/