diff mbox series

testsuite: Skip btf-bitfields-1.c if int is less than 32-bits

Message ID 20220623212123.149019-2-dimitar@dinux.eu
State New
Headers show
Series testsuite: Skip btf-bitfields-1.c if int is less than 32-bits | expand

Commit Message

Dimitar Dimitrov June 23, 2022, 9:21 p.m. UTC
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.

Ok for trunk?

gcc/testsuite/ChangeLog:

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

CC: Jose E. Marchesi <jose.marchesi@oracle.com>
Signed-off-by: Dimitar Dimitrov <dimitar@dinux.eu>
---
 gcc/testsuite/gcc.dg/debug/btf/btf-bitfields-1.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Jeff Law June 24, 2022, 7:25 p.m. UTC | #1
On 6/23/2022 3:21 PM, Dimitar Dimitrov wrote:
> 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.
>
> Ok for trunk?
>
> gcc/testsuite/ChangeLog:
>
> 	* gcc.dg/debug/btf/btf-bitfields-1.c: Skip if int is less than
> 	32-bits.
OK.
jeff
diff mbox series

Patch

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 4cb7ee84f83..793b4c8db82 100644
--- a/gcc/testsuite/gcc.dg/debug/btf/btf-bitfields-1.c
+++ b/gcc/testsuite/gcc.dg/debug/btf/btf-bitfields-1.c
@@ -10,6 +10,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 } } */