about summary refs log tree commit diff
diff options
context:
space:
mode:
authorStan Shebs <stanshebs@google.com>2019-04-24 08:01:50 -0700
committerStan Shebs <stanshebs@google.com>2019-04-24 08:01:50 -0700
commit64b3e177bc10f18818f1bc790296a9c0a30aacc8 (patch)
tree3f60c6ee44f2e2a3a22b847a1848732ffd872c88
parent1ba307084e002720491b3a3589c48ba492c1769b (diff)
downloadglibc-64b3e177bc10f18818f1bc790296a9c0a30aacc8.tar.gz
glibc-64b3e177bc10f18818f1bc790296a9c0a30aacc8.tar.xz
glibc-64b3e177bc10f18818f1bc790296a9c0a30aacc8.zip
Work around a clang problem with asm constraints
-rw-r--r--sysdeps/x86/fpu/math-barriers.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/x86/fpu/math-barriers.h b/sysdeps/x86/fpu/math-barriers.h
index 5bed60ddec..542411aae3 100644
--- a/sysdeps/x86/fpu/math-barriers.h
+++ b/sysdeps/x86/fpu/math-barriers.h
@@ -19,7 +19,7 @@
 #ifndef X86_MATH_BARRIERS_H
 #define X86_MATH_BARRIERS_H 1
 
-#ifdef __SSE2_MATH__
+#if defined(__SSE2_MATH__) && !defined(__clang__)
 # define math_opt_barrier(x)						\
   ({ __typeof(x) __x;							\
      if (sizeof (x) <= sizeof (double)					\