[gcc r15-11382] 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:dea75454898b73c1d6a5690078570eef7e0a4c1e

commit r15-11382-gdea75454898b73c1d6a5690078570eef7e0a4c1e
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 95e9a982aa2b..7b311fc07aa0 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 } } */
 
 _BitInt(2) a;
 long long b, c, d;
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.