From 452fe68a53daf8e3dadf13d64bd262ff8e2a397e Mon Sep 17 00:00:00 2001 From: Stan Shebs Date: Wed, 26 Sep 2018 14:16:30 -0700 Subject: [PATCH] Make asm-based constraints be gcc-only --- sysdeps/powerpc/fpu/math_private.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sysdeps/powerpc/fpu/math_private.h b/sysdeps/powerpc/fpu/math_private.h index 4d1e571f848..92ed872af0c 100644 --- a/sysdeps/powerpc/fpu/math_private.h +++ b/sysdeps/powerpc/fpu/math_private.h @@ -24,11 +24,13 @@ #include #include +#if !defined __clang__ /* clang being confused by these constraints */ /* Avoid putting floating point values in memory. */ # define math_opt_barrier(x) \ ({ __typeof (x) __x = (x); __asm ("" : "+dwa" (__x)); __x; }) # define math_force_eval(x) \ ({ __typeof (x) __x = (x); __asm __volatile__ ("" : : "dwa" (__x)); }) +#endif /* clang */ #include_next -- 2.47.2