public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-1261] testsuite: Skip btf-bitfields-1.c if int is less than 32-bits
@ 2022-06-24 20:30 Dimitar Dimitrov
  0 siblings, 0 replies; only message in thread
From: Dimitar Dimitrov @ 2022-06-24 20:30 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:75fa80bb5654d1f8b21310118f41705b74168039

commit r13-1261-g75fa80bb5654d1f8b21310118f41705b74168039
Author: Dimitar Dimitrov <dimitar@dinux.eu>
Date:   Thu Jun 9 20:27:32 2022 +0300

    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>

Diff:
---
 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 c6bf52130dc..3ee07ddbd81 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 } } */


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-06-24 20:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-24 20:30 [gcc r13-1261] testsuite: Skip btf-bitfields-1.c if int is less than 32-bits Dimitar Dimitrov

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).