[kernel] Fix typing of types in builtins
The builtins `__builtin_types_compatible_p` and `__builtin_va_arg` need a type as argument. Frama-C converts them to an expression to be able to type the builtin call. This commit change the conversion in `cparser.mly` from a sizeof on the type to a cast with a marker indicating from which builtin the argument is coming from. This allows `cabs2cil` to type this expression differently than a regular cast or sizeof.
Showing
- src/kernel_internals/parsing/cparser.mly 18 additions, 6 deletionssrc/kernel_internals/parsing/cparser.mly
- src/kernel_internals/typing/cabs2cil.ml 26 additions, 0 deletionssrc/kernel_internals/typing/cabs2cil.ml
- src/kernel_services/ast_printing/cil_printer.ml 1 addition, 1 deletionsrc/kernel_services/ast_printing/cil_printer.ml
Loading
Please register or sign in to comment