nettle-benchmark freezes on Android, because clang optimized away the
bench_nothing function. Attached the proposed patch.

-- 
With best wishes
Dmitry

вс, 5 апр. 2020 г., 21:03 Niels Möller <[email protected]>:

> Hi,
>
> I've updated the NEWS file, and I don't think there are any easy changes
> pending. Please let me know ASAP if there's anything missing in NEWS, or
> if there are additional changes you think ought to be included before
> release.
>
> I intend to create a release-candidate tarball in a day or two for final
> testing.
>
> Regards,
> /Niels
>
> --
> Niels Möller. PGP-encrypted email is preferred. Keyid 368C6677.
> Internet email is subject to wholesale government surveillance.
>
> _______________________________________________
> nettle-bugs mailing list
> [email protected]
> http://lists.lysator.liu.se/mailman/listinfo/nettle-bugs
>
diff --git a/examples/nettle-benchmark.c b/examples/nettle-benchmark.c
index 5d0e649e..2808f70d 100644
--- a/examples/nettle-benchmark.c
+++ b/examples/nettle-benchmark.c
@@ -152,9 +152,11 @@ time_function(void (*f)(void *arg), void *arg)
   return elapsed / ncalls - overhead;
 }
 
+volatile int unused = 0;
 static void
 bench_nothing(void *arg UNUSED)
 {
+  unused = 1;
   return;
 }
 
_______________________________________________
nettle-bugs mailing list
[email protected]
http://lists.lysator.liu.se/mailman/listinfo/nettle-bugs

Reply via email to