diff options
author | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-04-16 18:35:13 +0000 |
---|---|---|
committer | paolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-04-16 18:35:13 +0000 |
commit | f69ec2f4e0b9fd745907073abf4804016915882b (patch) | |
tree | 0ab2d8b50e7b8b9ae4a1bf4ee7c733355922587c /gcc/c-parse.in | |
parent | 8ed097329ca7142888b139be1730a6a6d5183463 (diff) | |
download | gcc-f69ec2f4e0b9fd745907073abf4804016915882b.tar.gz |
2002-04-16 Paolo Carlini <pcarlini@unitus.it>
* c-parse.in (poplevel, compstmt_start,
compstmt_primary_start): Add ending ';', in accordance
with POSIX.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@52376 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/c-parse.in')
-rw-r--r-- | gcc/c-parse.in | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/c-parse.in b/gcc/c-parse.in index c6d4b4fe003..f415e41e7c2 100644 --- a/gcc/c-parse.in +++ b/gcc/c-parse.in @@ -2063,6 +2063,7 @@ end ifobjc poplevel: /* empty */ { $$ = add_scope_stmt (/*begin_p=*/0, /*partial_p=*/0); } + ; /* Start and end blocks created for the new scopes of C99. */ c99_block_start: /* empty */ @@ -2133,7 +2134,8 @@ compstmt_or_error: ; compstmt_start: '{' { compstmt_count++; - $$ = c_begin_compound_stmt (); } + $$ = c_begin_compound_stmt (); } + ; compstmt_nostart: '}' { $$ = convert (void_type_node, integer_zero_node); } @@ -2165,6 +2167,7 @@ compstmt_primary_start: compstmt_count++; $$ = add_stmt (build_stmt (COMPOUND_STMT, last_tree)); } + ; compstmt: compstmt_start compstmt_nostart { RECHAIN_STMTS ($1, COMPOUND_BODY ($1)); |