FreeBSD/contrib/gcc/cp/parser.c
/* Main entry point to OpenMP statement pragmas.  */
Main entry point to OpenMP statement pragmas.
Main entry point to OpenMP statement pragmas .
static void
cp_parser_omp_construct (cp_parser *parser, cp_token *pragma_tok)
{
  tree stmt;
  switch (pragma_tok->pragma_kind)
    {
    case PRAGMA_OMP_ATOMIC:
      cp_parser_omp_atomic (parser, pragma_tok);
      return;
    case PRAGMA_OMP_CRITICAL:
      stmt = cp_parser_omp_critical (parser, pragma_tok);
      break;
    case PRAGMA_OMP_FOR:
      stmt = cp_parser_omp_for (parser, pragma_tok);
      break;
    case PRAGMA_OMP_MASTER:
      stmt = cp_parser_omp_master (parser, pragma_tok);
      break;
    case PRAGMA_OMP_ORDERED:
      stmt = cp_parser_omp_ordered (parser, pragma_tok);
      break;
    case PRAGMA_OMP_PARALLEL:
      stmt = cp_parser_omp_parallel (parser, pragma_tok);
      break;
    case PRAGMA_OMP_SECTIONS:
      stmt = cp_parser_omp_sections (parser, pragma_tok);
      break;
    case PRAGMA_OMP_SINGLE:
      stmt = cp_parser_omp_single (parser, pragma_tok);
      break;
    default:
      gcc_unreachable ();
    }
  if (stmt)
    SET_EXPR_LOCATION (stmt, pragma_tok->location);
}
static void cp_parser_omp_construct ( cp_parser * parser , cp_token * pragma_tok ) { tree stmt ; switch ( pragma_tok -> pragma_kind ) { case PRAGMA_OMP_ATOMIC : cp_parser_omp_atomic ( parser , pragma_tok ) ; return ; case PRAGMA_OMP_CRITICAL : stmt = cp_parser_omp_critical ( parser , pragma_tok ) ; break ; case PRAGMA_OMP_FOR : stmt = cp_parser_omp_for ( parser , pragma_tok ) ; break ; case PRAGMA_OMP_MASTER : stmt = cp_parser_omp_master ( parser , pragma_tok ) ; break ; case PRAGMA_OMP_ORDERED : stmt = cp_parser_omp_ordered ( parser , pragma_tok ) ; break ; case PRAGMA_OMP_PARALLEL : stmt = cp_parser_omp_parallel ( parser , pragma_tok ) ; break ; case PRAGMA_OMP_SECTIONS : stmt = cp_parser_omp_sections ( parser , pragma_tok ) ; break ; case PRAGMA_OMP_SINGLE : stmt = cp_parser_omp_single ( parser , pragma_tok ) ; break ; default : gcc_unreachable ( ) ; } if ( stmt ) SET_EXPR_LOCATION ( stmt , pragma_tok -> location ) ; }
Main entry point to OpenMP statement pragmas.
Main entry point to OpenMP statement pragmas .