]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Make testcase myrandom() noinline.
authorPaul Floyd <pjfloyd@wanadoo.fr>
Wed, 18 May 2022 21:41:43 +0000 (23:41 +0200)
committerPaul Floyd <pjfloyd@wanadoo.fr>
Wed, 18 May 2022 21:41:43 +0000 (23:41 +0200)
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

index baf9bbe1eca91ac672e4373d8f58a476cf4de9d5..336790e0cbcf01981dad54cc97e2768b11948459 100644 (file)
@@ -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. */