diff options
author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2020-10-05 21:30:33 +0200 |
---|---|---|
committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2020-10-19 18:07:33 +0200 |
commit | 08f2b69e8c90efdd6bcb72cd126010ad87489985 (patch) | |
tree | ee84cda445746d16ae04f9ffa1becd177f51dad2 | |
parent | f42e2afa9ed007f8aa0d29e1c3d27fc1dd15f36a (diff) | |
download | sparse-08f2b69e8c90efdd6bcb72cd126010ad87489985.tar.gz |
builtin: add builtin type: [volatile] pointer to bool
This builtin type is needed for __atomic_clear()'s prototype.
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
-rw-r--r-- | symbol.c | 3 | ||||
-rw-r--r-- | symbol.h | 1 |
2 files changed, 4 insertions, 0 deletions
@@ -806,6 +806,7 @@ struct symbol const_void_ctype, const_char_ctype; struct symbol const_ptr_ctype, const_string_ctype; struct symbol const_wchar_ctype, const_wstring_ctype; struct symbol volatile_void_ctype, volatile_ptr_ctype; +struct symbol volatile_bool_ctype, volatile_bool_ptr_ctype; struct symbol zero_int; @@ -912,6 +913,8 @@ static const struct ctype_declare { { &const_wchar_ctype, T_CONST(&int_ctype, NULL, NULL) }, { &volatile_void_ctype,T_NODE(MOD_VOLATILE, &void_ctype, NULL, NULL) }, { &volatile_ptr_ctype, T_PTR(&volatile_void_ctype) }, + { &volatile_bool_ctype,T_NODE(MOD_VOLATILE, &bool_ctype, NULL, NULL) }, + { &volatile_bool_ptr_ctype, T_PTR(&volatile_bool_ctype) }, { NULL, } }; @@ -311,6 +311,7 @@ extern struct symbol const_void_ctype, const_char_ctype; extern struct symbol const_ptr_ctype, const_string_ctype; extern struct symbol const_wchar_ctype, const_wstring_ctype; extern struct symbol volatile_void_ctype, volatile_ptr_ctype; +extern struct symbol volatile_bool_ctype, volatile_bool_ptr_ctype; /* Special internal symbols */ extern struct symbol zero_int; |