aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitar Dimitrov <dimitar@dinux.eu>2022-06-09 20:27:32 +0300
committerDimitar Dimitrov <dimitar@dinux.eu>2022-06-24 23:30:22 +0300
commit75fa80bb5654d1f8b21310118f41705b74168039 (patch)
tree5831da903fd6ffa4219ff47584b465089cfe44ab
parentf21f17f95c0237f4f987a5fa9f1fa9c7e0db3c40 (diff)
downloadgcc-75fa80bb5654d1f8b21310118f41705b74168039.zip
gcc-75fa80bb5654d1f8b21310118f41705b74168039.tar.gz
gcc-75fa80bb5654d1f8b21310118f41705b74168039.tar.bz2
testsuite: Skip btf-bitfields-1.c if int is less than 32-bits
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>
-rw-r--r--gcc/testsuite/gcc.dg/debug/btf/btf-bitfields-1.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/debug/btf/btf-bitfields-1.c b/gcc/testsuite/gcc.dg/debug/btf/btf-bitfields-1.c
index c6bf521..3ee07dd 100644
--- a/gcc/testsuite/gcc.dg/debug/btf/btf-bitfields-1.c
+++ b/gcc/testsuite/gcc.dg/debug/btf/btf-bitfields-1.c
@@ -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 } } */