[gcc r16-7008] aarch64/testsuite: Fix test_frame_*.c
Andrew Pinski
pinskia@gcc.gnu.org
Fri Jan 23 20:33:20 GMT 2026
https://gcc.gnu.org/g:73a4887ee47ae62c31ced15323fd927150db6294
commit r16-7008-g73a4887ee47ae62c31ced15323fd927150db6294
Author: Andrew Pinski <andrew.pinski@oss.qualcomm.com>
Date: Fri Jan 23 12:29:17 2026 -0800
aarch64/testsuite: Fix test_frame_*.c
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>
Diff:
---
gcc/testsuite/gcc.target/aarch64/test_frame_common.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/testsuite/gcc.target/aarch64/test_frame_common.h b/gcc/testsuite/gcc.target/aarch64/test_frame_common.h
index c63fbcedd791..c097d964864b 100644
--- a/gcc/testsuite/gcc.target/aarch64/test_frame_common.h
+++ b/gcc/testsuite/gcc.target/aarch64/test_frame_common.h
@@ -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];\
More information about the Gcc-cvs
mailing list