From 11af36ddd9544af730586aba7cd3f2441485ee5e Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Sun, 26 Oct 2008 17:46:08 +0000 Subject: [PATCH] Fix parsing of expression statements, which pointlessly start with sizeof or __alignof__, and sort the case list. [r23210] --- parser.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/parser.c b/parser.c index a859dc4..e8813f3 100644 --- a/parser.c +++ b/parser.c @@ -9884,20 +9884,21 @@ expression_statment: case T___FUNCSIG__: case T___FUNCTION__: case T___PRETTY_FUNCTION__: + case T___alignof__: case T___builtin_alloca: case T___builtin_classify_type: case T___builtin_constant_p: case T___builtin_expect: case T___builtin_huge_val: + case T___builtin_inf: + case T___builtin_inff: + case T___builtin_infl: case T___builtin_isgreater: case T___builtin_isgreaterequal: case T___builtin_isless: case T___builtin_islessequal: case T___builtin_islessgreater: case T___builtin_isunordered: - case T___builtin_inf: - case T___builtin_inff: - case T___builtin_infl: case T___builtin_nan: case T___builtin_nanf: case T___builtin_nanl: @@ -9909,6 +9910,7 @@ expression_statment: case T___func__: case T___noop: case T__assume: + case T_sizeof: statement = parse_expression_statement(); break; -- 2.20.1