about summary refs log tree commit diff
path: root/ChangeLog
diff options
context:
space:
mode:
authorSiddhesh Poyarekar <siddhesh@redhat.com>2013-05-17 19:10:33 +0530
committerSiddhesh Poyarekar <siddhesh@redhat.com>2013-05-17 19:10:33 +0530
commit48a18de1e1e7dfeab6d034765caaf732b53cfcb7 (patch)
tree1710f87c334a2d5cc79c30f9262212697eb814ef /ChangeLog
parent13d3b41a36c4f28d171a144f8a9baad3a8835981 (diff)
downloadglibc-48a18de1e1e7dfeab6d034765caaf732b53cfcb7.tar.gz
glibc-48a18de1e1e7dfeab6d034765caaf732b53cfcb7.tar.xz
glibc-48a18de1e1e7dfeab6d034765caaf732b53cfcb7.zip
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.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog7
1 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 78d4804885..58b87d4bc3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
+
+	[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  <azanella@linux.vnet.ibm.com>
 
 	* sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for