From f6ce9294b0a6c5a847109cc41b7ad0c838b9ccfe Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Wed, 26 Oct 2011 11:19:35 +0200 Subject: Make math_force_eval accept non-addressable arguments --- math/math_private.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'math') diff --git a/math/math_private.h b/math/math_private.h index 4cb81ea418..04c112fd60 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 -- cgit 1.4.1