Fix copy'n'pasto.
gcc/c/ * c-parser.c (c_parser_omp_clause_thread_limit): Rename num_teams_loc variable to num_thread_limit_loc. From-SVN: r210821
This commit is contained in:
parent
ee91832767
commit
68c81f24be
|
@ -1,3 +1,8 @@
|
||||||
|
2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
|
||||||
|
|
||||||
|
* c-parser.c (c_parser_omp_clause_thread_limit): Rename
|
||||||
|
num_teams_loc variable to num_thread_limit_loc.
|
||||||
|
|
||||||
2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
|
2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
|
||||||
|
|
||||||
* c-array-notation.c (expand_array_notations): Use void_node
|
* c-array-notation.c (expand_array_notations): Use void_node
|
||||||
|
|
|
@ -10453,7 +10453,7 @@ c_parser_omp_clause_num_teams (c_parser *parser, tree list)
|
||||||
static tree
|
static tree
|
||||||
c_parser_omp_clause_thread_limit (c_parser *parser, tree list)
|
c_parser_omp_clause_thread_limit (c_parser *parser, tree list)
|
||||||
{
|
{
|
||||||
location_t num_teams_loc = c_parser_peek_token (parser)->location;
|
location_t num_thread_limit_loc = c_parser_peek_token (parser)->location;
|
||||||
if (c_parser_require (parser, CPP_OPEN_PAREN, "expected %<(%>"))
|
if (c_parser_require (parser, CPP_OPEN_PAREN, "expected %<(%>"))
|
||||||
{
|
{
|
||||||
location_t expr_loc = c_parser_peek_token (parser)->location;
|
location_t expr_loc = c_parser_peek_token (parser)->location;
|
||||||
|
@ -10483,7 +10483,7 @@ c_parser_omp_clause_thread_limit (c_parser *parser, tree list)
|
||||||
check_no_duplicate_clause (list, OMP_CLAUSE_THREAD_LIMIT,
|
check_no_duplicate_clause (list, OMP_CLAUSE_THREAD_LIMIT,
|
||||||
"thread_limit");
|
"thread_limit");
|
||||||
|
|
||||||
c = build_omp_clause (num_teams_loc, OMP_CLAUSE_THREAD_LIMIT);
|
c = build_omp_clause (num_thread_limit_loc, OMP_CLAUSE_THREAD_LIMIT);
|
||||||
OMP_CLAUSE_THREAD_LIMIT_EXPR (c) = t;
|
OMP_CLAUSE_THREAD_LIMIT_EXPR (c) = t;
|
||||||
OMP_CLAUSE_CHAIN (c) = list;
|
OMP_CLAUSE_CHAIN (c) = list;
|
||||||
list = c;
|
list = c;
|
||||||
|
|
Loading…
Reference in New Issue