From: David Faust Date: Tue, 26 Aug 2025 19:14:15 +0000 (-0700) Subject: testsuite: restrict ctf-array-7 test to 64-bit targets [PR121411] X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=de04eb4ccaa77b048bca367e71d0af7de12258d1;p=thirdparty%2Fgcc.git 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 --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];