public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] testsuite: Skip btf-bitfields-1.c if int is less than 32-bits
@ 2022-06-23 21:21 Dimitar Dimitrov
  2022-06-24 19:25 ` Jeff Law
  0 siblings, 1 reply; 2+ messages in thread
From: Dimitar Dimitrov @ 2022-06-23 21:21 UTC (permalink / raw)
  To: gcc-patches

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(+)

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 } } */
 
-- 
2.36.1


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] testsuite: Skip btf-bitfields-1.c if int is less than 32-bits
  2022-06-23 21:21 [PATCH] testsuite: Skip btf-bitfields-1.c if int is less than 32-bits Dimitar Dimitrov
@ 2022-06-24 19:25 ` Jeff Law
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff Law @ 2022-06-24 19:25 UTC (permalink / raw)
  To: gcc-patches



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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-06-24 19:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-23 21:21 [PATCH] testsuite: Skip btf-bitfields-1.c if int is less than 32-bits Dimitar Dimitrov
2022-06-24 19:25 ` Jeff Law

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).