[gcc r14-12750] testsuite: Require bitint in gcc.dg/torture/bitint-101.c

Jakub Jelinek via Gcc-cvs <[email protected]>
Newsgroups gmane.comp.gcc.cvs
Message-ID <[email protected]>
https://gcc.gnu.org/g:f2f60ebaaca3ebfd09340702594660842b69a1ad

commit r14-12750-gf2f60ebaaca3ebfd09340702594660842b69a1ad
Author: Rainer Orth <[email protected]>
Date:   Thu Jul 16 09:56:58 2026 +0200

    testsuite: Require bitint in gcc.dg/torture/bitint-101.c
    
    The new gcc.dg/torture/bitint-101.c test FAILs on Solaris/SPARC:
    
    FAIL: gcc.dg/torture/bitint-101.c   -O0  (test for excess errors)
    UNRESOLVED: gcc.dg/torture/bitint-101.c   -O0  compilation failed to produce executable
    
    Excess errors:
    gcc.dg/torture/bitint-101.c:4:1: sorry, unimplemented: '_BitInt(2)' is not supported on this target
    gcc.dg/torture/bitint-101.c:11:3: sorry, unimplemented: '_BitInt(2)' is not supported on this target
    
    Fixed by requiring bitint support.
    
    Tested on sparc-sun-solaris2.11 and i386-pc-solaris2.11.
    
    2026-07-16  Rainer Orth  <[email protected]>
    
            gcc/testsuite:
            * gcc.dg/torture/bitint-101.c: Require bitint.
    
    (cherry picked from commit 1731ba6e70ff806c209ab4d73c402257afd41768)

Diff:
---
 gcc/testsuite/gcc.dg/torture/bitint-101.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/testsuite/gcc.dg/torture/bitint-101.c b/gcc/testsuite/gcc.dg/torture/bitint-101.c
index 42f3998ccbfc..df3acd344a6e 100644
--- a/gcc/testsuite/gcc.dg/torture/bitint-101.c
+++ b/gcc/testsuite/gcc.dg/torture/bitint-101.c
@@ -1,5 +1,5 @@
 /* PR tree-optimization/126257 */
-/* { dg-do run } */
+/* { dg-do run { target bitint } } */
 /* { dg-additional-options "-std=c23" } */
 
 _BitInt(2) a;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.