]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Make asm-based constraints be gcc-only
authorStan Shebs <stanshebs@google.com>
Wed, 26 Sep 2018 21:16:30 +0000 (14:16 -0700)
committerFangrui Song <i@maskray.me>
Sat, 28 Aug 2021 00:23:14 +0000 (17:23 -0700)
sysdeps/powerpc/fpu/math_private.h

index 4d1e571f8489300c35ca8a44cd0d83c5199f2267..92ed872af0c57ed5656c43e30a8a38d5eca4e758 100644 (file)
 #include <dl-procinfo.h>
 #include <fenv_private.h>
 
+#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 <math_private.h>