https://gcc.gnu.org/g:de04eb4ccaa77b048bca367e71d0af7de12258d1
commit r16-3401-gde04eb4ccaa77b048bca367e71d0af7de12258d1 Author: David Faust <david.fa...@oracle.com> Date: Tue Aug 26 12:14:15 2025 -0700 testsuite: restrict ctf-array-7 test to 64-bit targets [PR121411] 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. PR debug/121411 gcc/testsuite/ * gcc.dg/debug/ctf/ctf-array-7.c: Restrict to lp64,llp64 targets. Diff: --- 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 01accc7c18f1..f064f6fa5fe6 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];