diff options
Diffstat (limited to 'gcc/c/c-parser.cc')
-rw-r--r-- | gcc/c/c-parser.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/c/c-parser.cc b/gcc/c/c-parser.cc index aa68ee2..106a5b4 100644 --- a/gcc/c/c-parser.cc +++ b/gcc/c/c-parser.cc @@ -8802,7 +8802,8 @@ c_parser_while_statement (c_parser *parser, bool ivdep, unsigned short unroll, body = c_parser_c99_block_statement (parser, if_p, &loc_after_labels); if (loop_name && !C_DECL_LOOP_SWITCH_NAME_USED (loop_name)) loop_name = NULL_TREE; - add_stmt (build_stmt (loc, WHILE_STMT, cond, body, loop_name)); + add_stmt (build_stmt (loc, WHILE_STMT, cond, body, loop_name, NULL_TREE, + NULL_TREE)); add_stmt (c_end_compound_stmt (loc, block, flag_isoc99)); c_parser_maybe_reclassify_token (parser); if (num_names) @@ -9207,7 +9208,7 @@ c_parser_for_statement (c_parser *parser, bool ivdep, unsigned short unroll, add_stmt (build_stmt (for_loc, FOR_STMT, NULL_TREE, cond, incr, body, NULL_TREE, loop_name && C_DECL_LOOP_SWITCH_NAME_USED (loop_name) - ? loop_name : NULL_TREE)); + ? loop_name : NULL_TREE, NULL_TREE, NULL_TREE)); add_stmt (c_end_compound_stmt (for_loc, block, flag_isoc99 || c_dialect_objc ())); c_parser_maybe_reclassify_token (parser); |