aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDavid Faust <david.faust@oracle.com>2024-03-01 10:43:24 -0800
committerDavid Faust <david.faust@oracle.com>2024-03-01 11:07:16 -0800
commit64221c7bffbdd399e49554b0fb08b38325657596 (patch)
tree40beeb38863faf0265db6b03cebd115862a95ad7 /gcc
parentdb0b6746be075e43c8142585968483e125bb52d0 (diff)
downloadgcc-64221c7bffbdd399e49554b0fb08b38325657596.zip
gcc-64221c7bffbdd399e49554b0fb08b38325657596.tar.gz
gcc-64221c7bffbdd399e49554b0fb08b38325657596.tar.bz2
testsuite: ctf: make array in ctf-file-scope-1 fixed length
The array member of struct SFOO in the ctf-file-scope-1 caused the test to fail for the BPF target, since BPF does not support dynamic stack allocation. The array does not need to variable length for the sake of the test, so make it fixed length instead to allow the test to run successfully for the bpf-unknown-none target. gcc/testsuite/ * gcc.dg/debug/ctf/ctf-file-scope-1.c (SFOO): Make array member fixed-length.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/testsuite/gcc.dg/debug/ctf/ctf-file-scope-1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/testsuite/gcc.dg/debug/ctf/ctf-file-scope-1.c b/gcc/testsuite/gcc.dg/debug/ctf/ctf-file-scope-1.c
index a683113..ddfb31d 100644
--- a/gcc/testsuite/gcc.dg/debug/ctf/ctf-file-scope-1.c
+++ b/gcc/testsuite/gcc.dg/debug/ctf/ctf-file-scope-1.c
@@ -9,7 +9,7 @@
int foo (int n)
{
- typedef struct { int a[n]; } SFOO;
+ typedef struct { int a[6]; } SFOO;
SFOO a;
__attribute__ ((noinline)) SFOO gfoo (void) { return a; }