parse.y (block_end:): If the collected block doesn't feature a statement, insert an empty statement.

Thu Apr 27 17:25:33 2000  Alexandre Petit-Bianco  <apbianco@cygnus.com>

	* parse.y (block_end:): If the collected block doesn't feature a
 	statement, insert an empty statement.

From-SVN: r34038
This commit is contained in:
Alexandre Petit-Bianco 2000-05-19 22:04:08 +00:00 committed by Tom Tromey
parent 51891abe62
commit c280e37af4
3 changed files with 328 additions and 319 deletions

View File

@ -1,3 +1,8 @@
Thu Apr 27 17:25:33 2000 Alexandre Petit-Bianco <apbianco@cygnus.com>
* parse.y (block_end:): If the collected block doesn't feature a
statement, insert an empty statement.
2000-04-17 Alexandre Petit-Bianco <apbianco@cygnus.com>
* parse.y (fold_constant_for_init): Let VAR_DECL and FIELD_DECL be

File diff suppressed because it is too large Load Diff

View File

@ -1326,6 +1326,8 @@ block_end:
DECL_END_SOURCE_LINE (current_function_decl) =
EXPR_WFL_ADD_COL ($1.location, 1);
$$ = exit_block ();
if (!BLOCK_SUBBLOCKS ($$))
BLOCK_SUBBLOCKS ($$) = empty_stmt_node;
}
;