From: Stan Shebs Date: Wed, 26 Sep 2018 21:16:30 +0000 (-0700) Subject: Make asm-based constraints be gcc-only X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=452fe68a53daf8e3dadf13d64bd262ff8e2a397e;p=thirdparty%2Fglibc.git Make asm-based constraints be gcc-only --- 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