Exemplo n.º 1
0
tree
c_finish_omp_critical (tree body, tree name)
{
    tree stmt = make_node (OMP_CRITICAL);
    TREE_TYPE (stmt) = void_type_node;
    OMP_CRITICAL_BODY (stmt) = body;
    OMP_CRITICAL_NAME (stmt) = name;
    return add_stmt (stmt);
}
Exemplo n.º 2
0
Arquivo: c-omp.c Projeto: Nodplus/gcc
tree
c_finish_omp_critical (location_t loc, tree body, tree name)
{
  tree stmt = make_node (OMP_CRITICAL);
  TREE_TYPE (stmt) = void_type_node;
  OMP_CRITICAL_BODY (stmt) = body;
  OMP_CRITICAL_NAME (stmt) = name;
  SET_EXPR_LOCATION (stmt, loc);
  return add_stmt (stmt);
}