From: Paolo Carlini Date: Tue, 16 Apr 2002 18:35:13 +0000 (+0200) Subject: c-parse.in (poplevel, [...]): Add ending ';', in accordance with POSIX. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7d6f6369938e8ce41d3d748da8c7b6ce663ccd4a;p=gcc.git c-parse.in (poplevel, [...]): Add ending ';', in accordance with POSIX. 2002-04-16 Paolo Carlini * c-parse.in (poplevel, compstmt_start, compstmt_primary_start): Add ending ';', in accordance with POSIX. From-SVN: r52376 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a72f6deaae9..da55bbc36eb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2002-04-16 Paolo Carlini + + * c-parse.in (poplevel, compstmt_start, + compstmt_primary_start): Add ending ';', in accordance + with POSIX. + 2002-04-16 Richard Henderson * config.gcc (sparcv9-solaris): Configure for 64-bit default. 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));