]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
AVR: Make gcc.dg/c23-stdarg-9.c work.
authorGeorg-Johann Lay <avr@gjlay.de>
Thu, 3 Oct 2024 13:19:21 +0000 (15:19 +0200)
committerGeorg-Johann Lay <avr@gjlay.de>
Thu, 3 Oct 2024 13:22:47 +0000 (15:22 +0200)
gcc/testsuite/
* gcc.dg/c23-stdarg-9.c (struct S) [AVR]: Only use int a[500].

gcc/testsuite/gcc.dg/c23-stdarg-9.c

index e2839e7e2cd0eb498f6b23822043b8d8ec5da389..068fe3d4c7a5b092737cf42c445e55338a53f8de 100644 (file)
@@ -5,7 +5,12 @@
 
 #include <stdarg.h>
 
+#ifdef __AVR__
+/* AVR doesn't have that much stack... */
+struct S { int a[500]; };
+#else
 struct S { int a[1024]; };
+#endif
 
 int
 f1 (...)