From 48a18de1e1e7dfeab6d034765caaf732b53cfcb7 Mon Sep 17 00:00:00 2001 From: Siddhesh Poyarekar Date: Fri, 17 May 2013 19:10:33 +0530 Subject: Prevent optimizing out of benchmark function call Resolves: #15424 The compiler would optimize the benchmark function call out of the loop and call it only once, resulting in blazingly fast times for some benchmarks (notably atan, sin and cos). Mark the inputs as volatile so that the code is forced to read again from the input for each iteration. --- ChangeLog | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 78d4804885..58b87d4bc3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2013-05-17 Siddhesh Poyarekar + + [BZ #15424] + * benchtests/bench-modf.c (struct args): Mark arg0 as + volatile. + * scripts/bench.pl: Mark members of struct args as volatile. + 2013-05-17 Adhemerval Zanella * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for -- cgit v1.2.3