static tree
c_parser_omp_loop_nest (c_parser *parser, bool *if_p)
{
- tree decl, cond, incr, init;
+ tree decl = NULL_TREE, cond = NULL_TREE, incr = NULL_TREE, init = NULL_TREE;
tree body = NULL_TREE;
matching_parens parens;
bool moreloops;
}
/* Parse the loop condition. */
- cond = NULL_TREE;
if (c_parser_next_token_is_not (parser, CPP_SEMICOLON))
{
location_t cond_loc = c_parser_peek_token (parser)->location;
c_parser_skip_until_found (parser, CPP_SEMICOLON, "expected %<;%>");
/* Parse the increment expression. */
- incr = NULL_TREE;
if (c_parser_next_token_is_not (parser, CPP_CLOSE_PAREN))
{
location_t incr_loc = c_parser_peek_token (parser)->location;
static tree
cp_parser_omp_loop_nest (cp_parser *parser, bool *if_p)
{
- tree decl, cond, incr, init;
- tree orig_init, real_decl, orig_decl;
+ tree decl = NULL_TREE, cond = NULL_TREE, incr = NULL_TREE, init = NULL_TREE;
+ tree orig_init = NULL_TREE, real_decl = NULL_TREE, orig_decl = NULL_TREE;
tree init_block, body_block;
tree init_placeholder, body_placeholder;
tree init_scope;
if (!parens.require_open (parser))
return NULL;
- init = orig_init = decl = real_decl = orig_decl = NULL_TREE;
-
init_placeholder = build_stmt (input_location, EXPR_STMT,
integer_zero_node);
vec_safe_push (omp_for_parse_state->init_placeholderv, init_placeholder);
}
}
- cond = NULL;
if (cp_lexer_next_token_is_not (parser->lexer, CPP_SEMICOLON))
cond = cp_parser_omp_for_cond (parser, decl, omp_for_parse_state->code);
cp_parser_require (parser, CPP_SEMICOLON, RT_SEMICOLON);
- incr = NULL;
if (cp_lexer_next_token_is_not (parser->lexer, CPP_CLOSE_PAREN))
{
/* If decl is an iterator, preserve the operator on decl