Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Unified Diff: fusl/src/internal/libm.h

Issue 1581793002: Remove -Wno-unknown-pragmas from fusl build (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: comment to clang bug Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « fusl/BUILD.gn ('k') | fusl/src/math/fma.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: fusl/src/internal/libm.h
diff --git a/fusl/src/internal/libm.h b/fusl/src/internal/libm.h
index df8641116af2ee442525828bfc27bc2de75ee508..6c43f3e2df4ba6f36c75993f9ce78162f256cdb2 100644
--- a/fusl/src/internal/libm.h
+++ b/fusl/src/internal/libm.h
@@ -19,6 +19,16 @@
#include <complex.h>
#include <endian.h>
+/* Clang does not support the C99 rounding mode pragma. Support seems
+ * unlikely to be coming soon, but for reference the clang/llvm bug
+ * tracking this fact may be found at:
+ * https://llvm.org/bugs/show_bug.cgi?id=8100 */
+#ifdef __clang__
+#define PRAGMA_STDC_FENV_ACCESS_ON
+#else
+#define PRAGMA_STDC_FENV_ACCESS_ON _Pragma("STDC FENV_ACCESS ON")
+#endif
+
#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
#elif LDBL_MANT_DIG == 64 && LDBL_MAX_EXP == 16384 && __BYTE_ORDER == __LITTLE_ENDIAN
union ldshape {
« no previous file with comments | « fusl/BUILD.gn ('k') | fusl/src/math/fma.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698