On 7/20/24 12:54, Jakub Jelinek wrote:
This isn't enough.
The bitint effective target just means that the target supports
at least some _BitInt precisions (the standard in that case mandates
support for at least bits in long long, so 64), but this testcase
uses _BitInt(129), for that one needs to check for
#if __BITINT_MAXWIDTH__ >= 129
or use e.g. bitint575 effective target which guarantees _BitInt(575)
support.
Jakub
ugg. Maybe wrap the entire body like so?
Yes. Though, perantically empty translation unit is invalid, so you could
do something like
#else
int
main ()
{
}
before the
#endif
Jakub
perhaps easier to just do
diff --git a/gcc/testsuite/gcc.dg/pr116003.c
b/gcc/testsuite/gcc.dg/pr116003.c
index 970b1539c48..44e625015b0 100644
--- a/gcc/testsuite/gcc.dg/pr116003.c
+++ b/gcc/testsuite/gcc.dg/pr116003.c
@@ -1,4 +1,4 @@
-/* { dg-do compile { target bitint } } */
+/* { dg-do compile { target bitint575 } } */
/* { dg-options "-O2 -fnon-call-exceptions -fprofile-arcs
-finstrument-functions -fno-tree-copy-prop" } */
_BitInt(5) b5;