The test fails to compile on 32-bit targets because the arrays are too
large. Restrict to targets where the array index type is 64-bits.
Also note the relevant PR in the test comment.
Tested on x86_64-pc-linux-gnu host and arm-eabi cross target.
Pushed as obvious.
PR debug/121411
gcc/testsuite/
* gcc.dg/debug/ctf/ctf-array-7.c: Restrict to lp64,llp64
targets.
---
gcc/testsuite/gcc.dg/debug/ctf/ctf-array-7.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/gcc/testsuite/gcc.dg/debug/ctf/ctf-array-7.c
b/gcc/testsuite/gcc.dg/debug/ctf/ctf-array-7.c
index 01accc7c18f..f064f6fa5fe 100644
--- a/gcc/testsuite/gcc.dg/debug/ctf/ctf-array-7.c
+++ b/gcc/testsuite/gcc.dg/debug/ctf/ctf-array-7.c
@@ -1,11 +1,12 @@
-/* CTF generation for array which cannot be encoded in CTF.
+/* PR debug/121411
+ CTF generation for array which cannot be encoded in CTF.
CTF encoding uses a uint32 for number of elements in an array which
means there is a hard upper limit on sizes of arrays which can be
represented. Arrays with too many elements are encoded with
CTF_K_UNKNOWN to indicate that they cannot be represented. */
-/* { dg-do compile } */
+/* { dg-do compile { target { lp64 || llp64 } } } */
/* { dg-options "-O0 -gctf -dA" } */
int rep[0xffffffff];
--
2.47.2