Commit 7d6f6369 by Paolo Carlini Committed by Paolo Carlini

c-parse.in (poplevel, [...]): Add ending ';', in accordance with POSIX.

2002-04-16  Paolo Carlini  <pcarlini@unitus.it>

	* c-parse.in (poplevel, compstmt_start,
	compstmt_primary_start): Add ending ';', in accordance
	with POSIX.

From-SVN: r52376
parent 8947df0c
2002-04-16 Paolo Carlini <pcarlini@unitus.it>
* c-parse.in (poplevel, compstmt_start,
compstmt_primary_start): Add ending ';', in accordance
with POSIX.
2002-04-16 Richard Henderson <rth@redhat.com> 2002-04-16 Richard Henderson <rth@redhat.com>
* config.gcc (sparcv9-solaris): Configure for 64-bit default. * config.gcc (sparcv9-solaris): Configure for 64-bit default.
......
...@@ -2063,6 +2063,7 @@ end ifobjc ...@@ -2063,6 +2063,7 @@ end ifobjc
poplevel: /* empty */ poplevel: /* empty */
{ $$ = add_scope_stmt (/*begin_p=*/0, /*partial_p=*/0); } { $$ = add_scope_stmt (/*begin_p=*/0, /*partial_p=*/0); }
;
/* Start and end blocks created for the new scopes of C99. */ /* Start and end blocks created for the new scopes of C99. */
c99_block_start: /* empty */ c99_block_start: /* empty */
...@@ -2133,7 +2134,8 @@ compstmt_or_error: ...@@ -2133,7 +2134,8 @@ compstmt_or_error:
; ;
compstmt_start: '{' { compstmt_count++; compstmt_start: '{' { compstmt_count++;
$$ = c_begin_compound_stmt (); } $$ = c_begin_compound_stmt (); }
;
compstmt_nostart: '}' compstmt_nostart: '}'
{ $$ = convert (void_type_node, integer_zero_node); } { $$ = convert (void_type_node, integer_zero_node); }
...@@ -2165,6 +2167,7 @@ compstmt_primary_start: ...@@ -2165,6 +2167,7 @@ compstmt_primary_start:
compstmt_count++; compstmt_count++;
$$ = add_stmt (build_stmt (COMPOUND_STMT, last_tree)); $$ = add_stmt (build_stmt (COMPOUND_STMT, last_tree));
} }
;
compstmt: compstmt_start compstmt_nostart compstmt: compstmt_start compstmt_nostart
{ RECHAIN_STMTS ($1, COMPOUND_BODY ($1)); { RECHAIN_STMTS ($1, COMPOUND_BODY ($1));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment