aboutsummaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@redhat.com>2011-10-26 11:19:35 +0200
committerAndreas Schwab <schwab@redhat.com>2011-10-26 11:44:08 +0200
commitf6ce9294b0a6c5a847109cc41b7ad0c838b9ccfe (patch)
treef24410a96b08b79eae0ecac2ecc788891b4c6d1a /math
parente0016b11d6186a7003d7204cb100acab9bbcd940 (diff)
downloadglibc-f6ce9294b0a6c5a847109cc41b7ad0c838b9ccfe.zip
glibc-f6ce9294b0a6c5a847109cc41b7ad0c838b9ccfe.tar.gz
glibc-f6ce9294b0a6c5a847109cc41b7ad0c838b9ccfe.tar.bz2
Make math_force_eval accept non-addressable arguments
Diffstat (limited to 'math')
-rw-r--r--math/math_private.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/math/math_private.h b/math/math_private.h
index 4cb81ea..04c112f 100644
--- a/math/math_private.h
+++ b/math/math_private.h
@@ -354,8 +354,9 @@ extern void __docos (double __x, double __dx, double __v[]);
#ifndef math_opt_barrier
#define math_opt_barrier(x) \
-({ __typeof (x) __x = x; __asm ("" : "+m" (__x)); __x; })
-#define math_force_eval(x) __asm __volatile ("" : : "m" (x))
+({ __typeof (x) __x = (x); __asm ("" : "+m" (__x)); __x; })
+#define math_force_eval(x) \
+({ __typeof (x) __x = (x); __asm __volatile ("" : : "m" (__x)); })
#endif