mirror of
git://git.yoctoproject.org/linux-yocto.git
synced 2025-10-23 07:23:12 +02:00
genksyms: decouple ATTRIBUTE_PHRASE from type-qualifier
The __attribute__ keyword can appear in more contexts than 'const' or 'volatile'. To avoid grammatical conflicts with future changes, ATTRIBUTE_PHRASE should not be reduced into type_qualifier. No functional changes are intended. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Acked-by: Nicolas Schier <n.schier@avm.de>
This commit is contained in:
parent
ccc11a195c
commit
ec28bfff83
|
@ -216,6 +216,7 @@ decl_specifier:
|
||||||
}
|
}
|
||||||
| type_specifier { dont_want_type_specifier = true; $$ = $1; }
|
| type_specifier { dont_want_type_specifier = true; $$ = $1; }
|
||||||
| type_qualifier
|
| type_qualifier
|
||||||
|
| ATTRIBUTE_PHRASE
|
||||||
;
|
;
|
||||||
|
|
||||||
storage_class_specifier:
|
storage_class_specifier:
|
||||||
|
@ -285,11 +286,13 @@ type_qualifier_seq_opt:
|
||||||
|
|
||||||
type_qualifier_seq:
|
type_qualifier_seq:
|
||||||
type_qualifier
|
type_qualifier
|
||||||
|
| ATTRIBUTE_PHRASE
|
||||||
| type_qualifier_seq type_qualifier { $$ = $2; }
|
| type_qualifier_seq type_qualifier { $$ = $2; }
|
||||||
|
| type_qualifier_seq ATTRIBUTE_PHRASE { $$ = $2; }
|
||||||
;
|
;
|
||||||
|
|
||||||
type_qualifier:
|
type_qualifier:
|
||||||
CONST_KEYW | VOLATILE_KEYW | ATTRIBUTE_PHRASE
|
CONST_KEYW | VOLATILE_KEYW
|
||||||
| RESTRICT_KEYW
|
| RESTRICT_KEYW
|
||||||
{ /* restrict has no effect in prototypes so ignore it */
|
{ /* restrict has no effect in prototypes so ignore it */
|
||||||
remove_node($1);
|
remove_node($1);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user