]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
aarch64/testsuite: Fix test_frame_*.c
authorAndrew Pinski <andrew.pinski@oss.qualcomm.com>
Fri, 23 Jan 2026 20:29:17 +0000 (12:29 -0800)
committerAndrew Pinski <andrew.pinski@oss.qualcomm.com>
Fri, 23 Jan 2026 20:32:25 +0000 (12:32 -0800)
The problem here is the test function is now being
inlined into main but that was not expected.
So mark the test functions with noinline and noclone
fixes the issue.

Pushed as obvious after testing to make sure the
test_frame_*.c testcases now work.

gcc/testsuite/ChangeLog:

* gcc.target/aarch64/test_frame_common.h (t_frame_pattern):
Add noclone and noinline to the defining test function.

Signed-off-by: Andrew Pinski <andrew.pinski@oss.qualcomm.com>
gcc/testsuite/gcc.target/aarch64/test_frame_common.h

index c63fbcedd79144765e3fcd69160c73f240fda3df..c097d964864b707cd9b11ba6e5279e50a93a2b13 100644 (file)
@@ -51,7 +51,7 @@ initialize_array (unsigned char *a, int len)
 }
 
 #define t_frame_pattern(name, local_size, callee_saved)\
-int \
+int __attribute__ ((noinline, noclone)) \
 name (void)\
 {\
   unsigned char a[local_size];\