From ed78405cd623778cb6b7ec8ae58fb4329aa0d488 Mon Sep 17 00:00:00 2001 From: Paul Floyd Date: Wed, 18 May 2022 23:41:43 +0200 Subject: [PATCH] Make testcase myrandom() noinline. With clang 13 none/tests/amd64/amd64locked fails because of what looks like a clang optimization error. do_bt_G_E_tests is the point of failure, and one factor is that clang 13 is inlining myrandom(). --- none/tests/amd64/amd64locked.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/none/tests/amd64/amd64locked.c b/none/tests/amd64/amd64locked.c index baf9bbe1ec..336790e0cb 100644 --- a/none/tests/amd64/amd64locked.c +++ b/none/tests/amd64/amd64locked.c @@ -14,6 +14,8 @@ typedef unsigned short UShort; typedef unsigned long UWord; typedef char HChar; + +__attribute__((noinline)) unsigned myrandom(void) { /* Simple multiply-with-carry random generator. */ -- 2.47.2