コード例 #1
0
ファイル: c-omp.c プロジェクト: austinsc/GCCXML
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);
}
コード例 #2
0
ファイル: c-omp.c プロジェクト: 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);
}