From: Paul Floyd Date: Wed, 18 May 2022 21:41:43 +0000 (+0200) Subject: Make testcase myrandom() noinline. X-Git-Tag: VALGRIND_3_20_0~78 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed78405cd623778cb6b7ec8ae58fb4329aa0d488;p=thirdparty%2Fvalgrind.git 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(). --- 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. */