|
From: Paul F. <pa...@so...> - 2022-05-18 21:45:26
|
https://sourceware.org/git/gitweb.cgi?p=valgrind.git;h=ed78405cd623778cb6b7ec8ae58fb4329aa0d488 commit ed78405cd623778cb6b7ec8ae58fb4329aa0d488 Author: Paul Floyd <pj...@wa...> Date: Wed May 18 23:41:43 2022 +0200 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: --- 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. */ |