From ebf025238d9ed9a5039c539d7fd735e6e70180d8 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Mon, 13 Nov 2000 20:00:22 +0000 Subject: c-parse.in (stmts_and_decls): Deprecate use of label at end of compound statement. * c-parse.in (stmts_and_decls): Deprecate use of label at end of compound statement. testsuite: * gcc.dg/wtr-label-1.c, gcc.dg/990214-1.c: Add semicolons after labels at end of compound statements. From-SVN: r37435 --- gcc/c-parse.in | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gcc/c-parse.in') diff --git a/gcc/c-parse.in b/gcc/c-parse.in index 0f3d2ab..288d248 100644 --- a/gcc/c-parse.in +++ b/gcc/c-parse.in @@ -1584,8 +1584,7 @@ stmts_and_decls: | lineno_stmt_decl_or_labels_ending_decl | lineno_stmt_decl_or_labels_ending_label { - if (pedantic) - pedwarn ("ISO C forbids label at end of compound statement"); + pedwarn ("deprecated use of label at end of compound statement"); } | lineno_stmt_decl_or_labels_ending_error ; -- cgit v1.1