local64.h: make <asm/local64.h> mandatory
[linux-2.6-microblaze.git] / scripts / genksyms / parse.y
index e22b422..8e9b5e6 100644 (file)
@@ -80,6 +80,7 @@ static void record_compound(struct string_list **keyw,
 %token SHORT_KEYW
 %token SIGNED_KEYW
 %token STATIC_KEYW
+%token STATIC_ASSERT_KEYW
 %token STRUCT_KEYW
 %token TYPEDEF_KEYW
 %token UNION_KEYW
@@ -97,6 +98,7 @@ static void record_compound(struct string_list **keyw,
 %token BRACE_PHRASE
 %token BRACKET_PHRASE
 %token EXPRESSION_PHRASE
+%token STATIC_ASSERT_PHRASE
 
 %token CHAR
 %token DOTS
@@ -130,6 +132,7 @@ declaration1:
        | function_definition
        | asm_definition
        | export_definition
+       | static_assert
        | error ';'                             { $$ = $2; }
        | error '}'                             { $$ = $2; }
        ;
@@ -493,6 +496,10 @@ export_definition:
                { export_symbol((*$3)->string); $$ = $5; }
        ;
 
+/* Ignore any module scoped _Static_assert(...) */
+static_assert:
+       STATIC_ASSERT_PHRASE ';'                        { $$ = $2; }
+       ;
 
 %%