[glibc/azanella/clang] i386: Disable math_opt_barrier and math_force_eval for clang
Adhemerval Zanella
azanella@sourceware.org
Wed Apr 17 20:07:47 GMT 2024
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=4f159526dea6151ca19eafd85a7fc43d9d405ff9
commit 4f159526dea6151ca19eafd85a7fc43d9d405ff9
Author: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Date: Tue Jul 26 08:45:02 2022 -0300
i386: Disable math_opt_barrier and math_force_eval for clang
It triggers an ICE with clang while building round_and_return.
Diff:
---
sysdeps/x86/fpu/math-barriers.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sysdeps/x86/fpu/math-barriers.h b/sysdeps/x86/fpu/math-barriers.h
index 6fdcdac280..59577b77ea 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) \
More information about the Glibc-cvs
mailing list