]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: restrict ctf-array-7 test to 64-bit targets [PR121411]
authorDavid Faust <david.faust@oracle.com>
Tue, 26 Aug 2025 19:14:15 +0000 (12:14 -0700)
committerDavid Faust <david.faust@oracle.com>
Tue, 26 Aug 2025 19:18:49 +0000 (12:18 -0700)
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.

gcc/testsuite/gcc.dg/debug/ctf/ctf-array-7.c

index 01accc7c18f1a25e33e113b479d76eb7682c037b..f064f6fa5fe6ead7259fcd80f94a70e0b777ad78 100644 (file)
@@ -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];