aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/validation/linear/bitfield-sign-unsigned.c
AgeCommit message (Collapse)AuthorFilesLines
2020-09-16teach sparse about -funsigned-bitfieldsLuc Van Oostenryck1-0/+13
Currently, Sparse treats 'plain' bitfields as unsigned. However, this is this is inconsistent with how non-bitfield integers are handled and with how GCC & clang handle bitfields. So, teach sparse about '-funsigned-bitfields' and by default treat these bitfields are signed, like done by GCC & clang and like done for non-bitfield integers. Also, avoid plain bitfields in IR related testcases. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>