From 8d63d87c6d45bf8feecdaf54b1743c94938ce7ff Mon Sep 17 00:00:00 2001 From: Georg-Johann Lay Date: Thu, 3 Oct 2024 15:19:21 +0200 Subject: [PATCH] AVR: Make gcc.dg/c23-stdarg-9.c work. gcc/testsuite/ * gcc.dg/c23-stdarg-9.c (struct S) [AVR]: Only use int a[500]. --- gcc/testsuite/gcc.dg/c23-stdarg-9.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gcc/testsuite/gcc.dg/c23-stdarg-9.c b/gcc/testsuite/gcc.dg/c23-stdarg-9.c index e2839e7e2cd0..068fe3d4c7a5 100644 --- a/gcc/testsuite/gcc.dg/c23-stdarg-9.c +++ b/gcc/testsuite/gcc.dg/c23-stdarg-9.c @@ -5,7 +5,12 @@ #include +#ifdef __AVR__ +/* AVR doesn't have that much stack... */ +struct S { int a[500]; }; +#else struct S { int a[1024]; }; +#endif int f1 (...) -- 2.47.2