testsuite: Adjust btf-bitfields-1.c for default_packed
authorDimitar Dimitrov <dimitar@dinux.eu>
Fri, 22 Apr 2022 17:27:22 +0000 (20:27 +0300)
committerDimitar Dimitrov <dimitar@dinux.eu>
Sun, 26 Jun 2022 17:32:19 +0000 (20:32 +0300)
commitd230906bf692d1f723fe0f21672bed70f73673fa
tree36e9b7ec2cbc10ad3b82dc4cdcf548e659ac2a4f
parent80ace9185dc534e4d6cb19506300c4fcad4bd916
testsuite: Adjust btf-bitfields-1.c for default_packed

If target packs structures by default, the bitfield offset which the
test validates must be adjusted to not include padding.

gcc/testsuite/ChangeLog:

* gcc.dg/debug/btf/btf-bitfields-1.c: Adjust the checked offsets
for targets which pack structures by default.

Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
gcc/testsuite/gcc.dg/debug/btf/btf-bitfields-1.c