]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Skip btf-bitfields-1.c if int is less than 32-bits
authorDimitar Dimitrov <dimitar@dinux.eu>
Thu, 9 Jun 2022 17:27:32 +0000 (20:27 +0300)
committerDimitar Dimitrov <dimitar@dinux.eu>
Fri, 24 Jun 2022 20:30:22 +0000 (23:30 +0300)
This test spuriously fails on AVR with:
   error: width of 'bitfield_c' exceeds its type

8-bit and 16-bit microcontrollers do not seem to be the target audience
for BTF file format.  So the least intrusive fix is to simply skip the
test for them.

gcc/testsuite/ChangeLog:

* gcc.dg/debug/btf/btf-bitfields-1.c: Skip if int is less than
32-bits.

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

index c6bf52130dc0cf8effa7d46bb563fc5e45b92fc8..3ee07ddbd818672680fcf15b4ffdca1799888074 100644 (file)
@@ -9,6 +9,7 @@
 
 /* { dg-do compile )  */
 /* { dg-options "-O0 -gbtf -dA" } */
+/* { dg-require-effective-target int32plus } */
 
 /* { dg-final { scan-assembler-times "\[\t \]0x84000004\[\t \]+\[^\n\]*btt_info" 1 } } */