]> Savannah Git Hosting - gnulib.git/commitdiff
Fix "unknown pragma ignored" warnings with clang on native Windows.
authorBruno Haible <bruno@clisp.org>
Sat, 15 Aug 2020 08:27:30 +0000 (10:27 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 15 Aug 2020 08:28:36 +0000 (10:28 +0200)
* lib/cbrt.c: Don't use '#pragma fenv_access (off)' with clang.
* lib/cbrtf.c: Likewise.
* lib/ceil.c: Likewise.
* lib/floor.c: Likewise.
* lib/fma.c: Likewise.
* lib/fmod.c: Likewise.
* lib/rint.c: Likewise.
* lib/round.c: Likewise.
* lib/trunc.c: Likewise.
* tests/test-ceil2.c: Likewise.
* tests/test-ceilf2.c: Likewise.
* tests/test-floor2.c: Likewise.
* tests/test-floorf2.c: Likewise.
* tests/test-trunc2.c: Likewise.
* tests/test-truncf2.c: Likewise.
* m4/round.m4 (gl_FUNC_ROUND): Likewise.
* m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.

18 files changed:
ChangeLog
lib/cbrt.c
lib/cbrtf.c
lib/ceil.c
lib/floor.c
lib/fma.c
lib/fmod.c
lib/rint.c
lib/round.c
lib/trunc.c
m4/round.m4
m4/roundf.m4
tests/test-ceil2.c
tests/test-ceilf2.c
tests/test-floor2.c
tests/test-floorf2.c
tests/test-trunc2.c
tests/test-truncf2.c

index 560777abb081ba9f975a0deb79df471eafde7111..d84d53fb19b5b82438e9da228bc8b2a76ad1b329 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,24 @@
+2020-08-15  Bruno Haible  <bruno@clisp.org>
+
+       Fix "unknown pragma ignored" warnings with clang on native Windows.
+       * lib/cbrt.c: Don't use '#pragma fenv_access (off)' with clang.
+       * lib/cbrtf.c: Likewise.
+       * lib/ceil.c: Likewise.
+       * lib/floor.c: Likewise.
+       * lib/fma.c: Likewise.
+       * lib/fmod.c: Likewise.
+       * lib/rint.c: Likewise.
+       * lib/round.c: Likewise.
+       * lib/trunc.c: Likewise.
+       * tests/test-ceil2.c: Likewise.
+       * tests/test-ceilf2.c: Likewise.
+       * tests/test-floor2.c: Likewise.
+       * tests/test-floorf2.c: Likewise.
+       * tests/test-trunc2.c: Likewise.
+       * tests/test-truncf2.c: Likewise.
+       * m4/round.m4 (gl_FUNC_ROUND): Likewise.
+       * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
+
 2020-08-15  Bruno Haible  <bruno@clisp.org>
 
        Fix compilation errors in C++ mode with clang on native Windows.
index 812af61316335a1d4a65b87ae89c0057f5332590..c6834ed6e450c8fb50e97d2f018192623ac13dfa 100644 (file)
@@ -24,7 +24,7 @@
 
 /* MSVC with option -fp:strict refuses to compile constant initializers that
    contain floating-point operations.  Pacify this compiler.  */
-#ifdef _MSC_VER
+#if defined _MSC_VER && !defined __clang__
 # pragma fenv_access (off)
 #endif
 
index c2057bb808f668ca570a2955d23d6b725a15a4a9..727b7a864ac910da7bd067edcebe256cae7b17a5 100644 (file)
@@ -24,7 +24,7 @@
 
 /* MSVC with option -fp:strict refuses to compile constant initializers that
    contain floating-point operations.  Pacify this compiler.  */
-#ifdef _MSC_VER
+#if defined _MSC_VER && !defined __clang__
 # pragma fenv_access (off)
 #endif
 
index cf339e731ca97dc4a714d83914cd8a83b93c2a22..0c33ca57fde2a4e1d4fa235f996cd95c13789517 100644 (file)
@@ -56,7 +56,7 @@
 
 /* MSVC with option -fp:strict refuses to compile constant initializers that
    contain floating-point operations.  Pacify this compiler.  */
-#ifdef _MSC_VER
+#if defined _MSC_VER && !defined __clang__
 # pragma fenv_access (off)
 #endif
 
index 8a2713fb9b9ef118203bddb6cbe9afaea3685359..a735efdbfbccb2943f130a08ebd39b568efae4d4 100644 (file)
@@ -44,7 +44,7 @@
 
 /* MSVC with option -fp:strict refuses to compile constant initializers that
    contain floating-point operations.  Pacify this compiler.  */
-#ifdef _MSC_VER
+#if defined _MSC_VER && !defined __clang__
 # pragma fenv_access (off)
 #endif
 
index d14da40de80fcf7e2b138797c7555a23f600992c..82d1fe5983b4a0622cec3bbbb25987f3e3ffd8b4 100644 (file)
--- a/lib/fma.c
+++ b/lib/fma.c
@@ -69,7 +69,7 @@
 
 /* MSVC with option -fp:strict refuses to compile constant initializers that
    contain floating-point operations.  Pacify this compiler.  */
-#ifdef _MSC_VER
+#if defined _MSC_VER && !defined __clang__
 # pragma fenv_access (off)
 #endif
 
index 383ff71cd3cb907f55ff825afcc840f4298c1937..ba7e8e3b8475206bcf3b2a9b8d0a7f0d0f48e834 100644 (file)
@@ -48,7 +48,7 @@
 
 /* MSVC with option -fp:strict refuses to compile constant initializers that
    contain floating-point operations.  Pacify this compiler.  */
-#ifdef _MSC_VER
+#if defined _MSC_VER && !defined __clang__
 # pragma fenv_access (off)
 #endif
 
index 8522fc4e9459566cd21e4891dc28dc45c8e4d341..81794d6396b30a3e0ddf8eca803c0cf78ab63cca 100644 (file)
@@ -55,7 +55,7 @@
 
 /* MSVC with option -fp:strict refuses to compile constant initializers that
    contain floating-point operations.  Pacify this compiler.  */
-#ifdef _MSC_VER
+#if defined _MSC_VER && !defined __clang__
 # pragma fenv_access (off)
 #endif
 
index 72809fbc287fe02fe5e5c91826c0d6cce52aec85..1145032dd660d1856b97352dc23c7af241980d84 100644 (file)
@@ -66,7 +66,7 @@
 
 /* MSVC with option -fp:strict refuses to compile constant initializers that
    contain floating-point operations.  Pacify this compiler.  */
-#ifdef _MSC_VER
+#if defined _MSC_VER && !defined __clang__
 # pragma fenv_access (off)
 #endif
 
index 4ef19ac36c69fa3aad6f1facac49c0408502b56a..de45bf750bb869723fb0b05812b82a759d16248d 100644 (file)
@@ -56,7 +56,7 @@
 
 /* MSVC with option -fp:strict refuses to compile constant initializers that
    contain floating-point operations.  Pacify this compiler.  */
-#ifdef _MSC_VER
+#if defined _MSC_VER && !defined __clang__
 # pragma fenv_access (off)
 #endif
 
index 39c615466d7b603689c2919fe4862e7c1725c32d..854655ce893e78d8bc4da6aafe39fdcac9671f99 100644 (file)
@@ -1,4 +1,4 @@
-# round.m4 serial 22
+# round.m4 serial 23
 dnl Copyright (C) 2007, 2009-2020 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -41,7 +41,7 @@ extern
 "C"
 #endif
 double round (double);
-#ifdef _MSC_VER
+#if defined _MSC_VER && !defined __clang__
 # pragma fenv_access (off)
 #endif
 int main()
index 70a96ab87dcafb8838ae53552dec94644858453c..10f84f54462a3b95b074488e60856a3951b65cf3 100644 (file)
@@ -1,4 +1,4 @@
-# roundf.m4 serial 23
+# roundf.m4 serial 24
 dnl Copyright (C) 2007-2020 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -41,7 +41,7 @@ extern
 "C"
 #endif
 float roundf (float);
-#ifdef _MSC_VER
+#if defined _MSC_VER && !defined __clang__
 # pragma fenv_access (off)
 #endif
 int main()
index 7b39bc8b2019575b563c661d5b6dfb2f9c45b1a9..35f75d181ebd380941dff38a4ff01b827d4adbb5 100644 (file)
@@ -34,7 +34,7 @@
 
 /* MSVC with option -fp:strict refuses to compile constant initializers that
    contain floating-point operations.  Pacify this compiler.  */
-#ifdef _MSC_VER
+#if defined _MSC_VER && !defined __clang__
 # pragma fenv_access (off)
 #endif
 
index 7674266025b8580133e8ad322680c4f7dfcda03f..b646c6553b0712d9ab16a50ab8f0da2bc948326d 100644 (file)
@@ -34,7 +34,7 @@
 
 /* MSVC with option -fp:strict refuses to compile constant initializers that
    contain floating-point operations.  Pacify this compiler.  */
-#ifdef _MSC_VER
+#if defined _MSC_VER && !defined __clang__
 # pragma fenv_access (off)
 #endif
 
index be8b1a69324492731ecd7ac2a23b783ede69ff5a..3c48186d65b6c88aaa32ec37e177e2cd9adfad43 100644 (file)
@@ -33,7 +33,7 @@
 
 /* MSVC with option -fp:strict refuses to compile constant initializers that
    contain floating-point operations.  Pacify this compiler.  */
-#ifdef _MSC_VER
+#if defined _MSC_VER && !defined __clang__
 # pragma fenv_access (off)
 #endif
 
index 5d6c51ffca3288131fbc82443aafa0418fa29138..4c753226de2198ed74fe1098c06172d06271f0f3 100644 (file)
@@ -33,7 +33,7 @@
 
 /* MSVC with option -fp:strict refuses to compile constant initializers that
    contain floating-point operations.  Pacify this compiler.  */
-#ifdef _MSC_VER
+#if defined _MSC_VER && !defined __clang__
 # pragma fenv_access (off)
 #endif
 
index 04491f6f273fb59238b4075e6d0bc293a214f215..88248e9029261c1fc2d4c6da0dba9da91b0257ed 100644 (file)
@@ -34,7 +34,7 @@
 
 /* MSVC with option -fp:strict refuses to compile constant initializers that
    contain floating-point operations.  Pacify this compiler.  */
-#ifdef _MSC_VER
+#if defined _MSC_VER && !defined __clang__
 # pragma fenv_access (off)
 #endif
 
index c33da08968eb7b8fdf86a0ed61e701b9c40c99b1..39e9c76fe34c57926a5f9ddacb16fce696a3acc0 100644 (file)
@@ -34,7 +34,7 @@
 
 /* MSVC with option -fp:strict refuses to compile constant initializers that
    contain floating-point operations.  Pacify this compiler.  */
-#ifdef _MSC_VER
+#if defined _MSC_VER && !defined __clang__
 # pragma fenv_access (off)
 #endif