Commit 0efdb228 authored by Nicholas Piggin's avatar Nicholas Piggin Committed by Michal Marek

kbuild/genksyms: handle va_list type

genksyms currently does not handle va_list. Add the __builtin_va_list
keyword as a type. This reduces the amount of syntax errors thrown,
but so far no export symbol has a type with a va_list argument, so
there is currently no bug in the end result.

Note: this patch does not regenerate shipped parser files.
Signed-off-by: default avatarNicholas Piggin <npiggin@gmail.com>
Signed-off-by: default avatarMichal Marek <mmarek@suse.com>
parent fe026a85
...@@ -27,6 +27,7 @@ __typeof, TYPEOF_KEYW ...@@ -27,6 +27,7 @@ __typeof, TYPEOF_KEYW
__typeof__, TYPEOF_KEYW __typeof__, TYPEOF_KEYW
__volatile, VOLATILE_KEYW __volatile, VOLATILE_KEYW
__volatile__, VOLATILE_KEYW __volatile__, VOLATILE_KEYW
__builtin_va_list, VA_LIST_KEYW
# According to rth, c99 defines _Bool, __restrict, __restrict__, restrict. KAO # According to rth, c99 defines _Bool, __restrict, __restrict__, restrict. KAO
_Bool, BOOL_KEYW _Bool, BOOL_KEYW
_restrict, RESTRICT_KEYW _restrict, RESTRICT_KEYW
......
...@@ -98,6 +98,7 @@ static void record_compound(struct string_list **keyw, ...@@ -98,6 +98,7 @@ static void record_compound(struct string_list **keyw,
%token VOID_KEYW %token VOID_KEYW
%token VOLATILE_KEYW %token VOLATILE_KEYW
%token TYPEOF_KEYW %token TYPEOF_KEYW
%token VA_LIST_KEYW
%token EXPORT_SYMBOL_KEYW %token EXPORT_SYMBOL_KEYW
...@@ -261,6 +262,7 @@ simple_type_specifier: ...@@ -261,6 +262,7 @@ simple_type_specifier:
| DOUBLE_KEYW | DOUBLE_KEYW
| VOID_KEYW | VOID_KEYW
| BOOL_KEYW | BOOL_KEYW
| VA_LIST_KEYW
| TYPE { (*$1)->tag = SYM_TYPEDEF; $$ = $1; } | TYPE { (*$1)->tag = SYM_TYPEDEF; $$ = $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