]> Savannah Git Hosting - gnulib.git/commitdiff
Defeat current GCC optimizations in math autoconf tests.
authorBruno Haible <bruno@clisp.org>
Sun, 20 Jan 2019 20:19:41 +0000 (21:19 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 20 Jan 2019 20:19:41 +0000 (21:19 +0100)
* m4/cbrtl.m4 (gl_FUNC_CBRTL): Mark function pointer as 'volatile'.
* m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
* m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
* m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
* m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
* m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
* m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
* m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
* m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
* m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
* m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
* m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
* m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
* m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
* m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
* m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
* m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Likewise.
* m4/log.m4 (gl_FUNC_LOG): Likewise.
* m4/logf.m4 (gl_FUNC_LOGF): Likewise.
* m4/log10.m4 (gl_FUNC_LOG10): Likewise.
* m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
* m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
* m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
* m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
* m4/log2.m4 (gl_FUNC_LOG2): Likewise.
* m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
* m4/modf.m4 (gl_FUNC_MODF): Likewise.
* m4/modff.m4 (gl_FUNC_MODFF): Likewise.
* m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
* m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
* m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
* m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
* m4/round.m4 (gl_FUNC_ROUND): Likewise.
* m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
* m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
* m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
* m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
* m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.

39 files changed:
ChangeLog
m4/cbrtl.m4
m4/ceil.m4
m4/ceilf.m4
m4/ceill.m4
m4/exp2l.m4
m4/expm1.m4
m4/floor.m4
m4/floorf.m4
m4/fmod.m4
m4/fmodf.m4
m4/fmodl.m4
m4/hypot.m4
m4/hypotf.m4
m4/hypotl.m4
m4/ilogb.m4
m4/ilogbf.m4
m4/ilogbl.m4
m4/log.m4
m4/log10.m4
m4/log10f.m4
m4/log1p.m4
m4/log1pf.m4
m4/log1pl.m4
m4/log2.m4
m4/log2f.m4
m4/logf.m4
m4/modf.m4
m4/modff.m4
m4/modfl.m4
m4/remainder.m4
m4/remainderf.m4
m4/remainderl.m4
m4/round.m4
m4/roundf.m4
m4/roundl.m4
m4/trunc.m4
m4/truncf.m4
m4/truncl.m4

index 02ed1141231ca75068e945eeb2a722316e59e31f..a03d5dd8b13937f0cdf9f0d74e12fac6f60c61ad 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,45 @@
+2019-01-20  Bruno Haible  <bruno@clisp.org>
+
+       Defeat current GCC optimizations in math autoconf tests.
+       * m4/cbrtl.m4 (gl_FUNC_CBRTL): Mark function pointer as 'volatile'.
+       * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
+       * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
+       * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
+       * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
+       * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
+       * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
+       * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
+       * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
+       * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
+       * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
+       * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
+       * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
+       * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
+       * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
+       * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
+       * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Likewise.
+       * m4/log.m4 (gl_FUNC_LOG): Likewise.
+       * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
+       * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
+       * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
+       * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
+       * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
+       * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
+       * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
+       * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
+       * m4/modf.m4 (gl_FUNC_MODF): Likewise.
+       * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
+       * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
+       * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
+       * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
+       * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
+       * m4/round.m4 (gl_FUNC_ROUND): Likewise.
+       * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
+       * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
+       * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
+       * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
+       * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
+
 2019-01-19  Pádraig Brady  <P@draigBrady.com>
 
        gettext: support disabling use of VLAs
index e0f736220a1bc7e28caca83eeaab37cd3ab2b067..dc867dbc28e5cc50f72fec10120dd24f474ba4a1 100644 (file)
@@ -1,4 +1,4 @@
-# cbrtl.m4 serial 7
+# cbrtl.m4 serial 8
 dnl Copyright (C) 2012-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -59,7 +59,7 @@ int main (int argc, char *argv[])
   "C"
   #endif
   long double cbrtl (long double);
-  long double (*my_cbrtl) (long double) = argc ? cbrtl : dummy;
+  long double (* volatile my_cbrtl) (long double) = argc ? cbrtl : dummy;
   long double f;
   /* Test cbrtl(-0.0).
      This test fails on IRIX 6.5.  */
index 1b11b847e95d388addc78fe80620497b6981236b..55222846672d8861fed1ae1e0bf330ce4e71f812 100644 (file)
@@ -1,4 +1,4 @@
-# ceil.m4 serial 12
+# ceil.m4 serial 13
 dnl Copyright (C) 2007, 2009-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -32,7 +32,7 @@ AC_DEFUN([gl_FUNC_CEIL],
 static double dummy (double f) { return 0; }
 int main (int argc, char *argv[])
 {
-  double (*my_ceil) (double) = argc ? ceil : dummy;
+  double (* volatile my_ceil) (double) = argc ? ceil : dummy;
   int result = 0;
   /* Test whether ceil (-0.0) is -0.0.  */
   if (signbitd (minus_zerod) && !signbitd (my_ceil (minus_zerod)))
index de4a80956e4c1f4cf7c0a8e347aec54e6541adad..65b4cffa73994a8646f4bcd912e5192f26eda8e2 100644 (file)
@@ -1,4 +1,4 @@
-# ceilf.m4 serial 16
+# ceilf.m4 serial 17
 dnl Copyright (C) 2007, 2009-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -39,7 +39,7 @@ AC_DEFUN([gl_FUNC_CEILF],
 static float dummy (float f) { return 0; }
 int main (int argc, char *argv[])
 {
-  float (*my_ceilf) (float) = argc ? ceilf : dummy;
+  float (* volatile my_ceilf) (float) = argc ? ceilf : dummy;
   int result = 0;
   /* Test whether ceilf (-0.0f) is -0.0f.  */
   if (signbitf (minus_zerof) && !signbitf (my_ceilf (minus_zerof)))
index 2663d4c82b3a38bce804af03d673a93f0555d54d..863c34450b31d731ae6bc47075e323583974f2d3 100644 (file)
@@ -1,4 +1,4 @@
-# ceill.m4 serial 17
+# ceill.m4 serial 18
 dnl Copyright (C) 2007, 2009-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -42,7 +42,7 @@ AC_DEFUN([gl_FUNC_CEILL],
 static long double dummy (long double f) { return 0; }
 int main (int argc, char *argv[])
 {
-  long double (*my_ceill) (long double) = argc ? ceill : dummy;
+  long double (* volatile my_ceill) (long double) = argc ? ceill : dummy;
   /* Test whether ceill (-0.3L) is -0.0L.  */
   if (signbitl (minus_zerol) && !signbitl (my_ceill (-0.3L)))
     return 1;
index d687e7d3122326021274a8d2583039523d85ddfb..20630ccb17e6d636f24263312d8808733bc28d91 100644 (file)
@@ -1,4 +1,4 @@
-# exp2l.m4 serial 5
+# exp2l.m4 serial 6
 dnl Copyright (C) 2010-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -50,7 +50,7 @@ static long double dummy (long double x) { return 0; }
 static long double zero;
 int main (int argc, char *argv[])
 {
-  long double (*my_exp2l) (long double) = argc ? exp2l : dummy;
+  long double (* volatile my_exp2l) (long double) = argc ? exp2l : dummy;
   int result = 0;
   /* This test fails on OpenBSD 4.9, where exp2l(NaN) = 0.0.  */
   if (exp2l (zero / zero) == 0.0L)
index 789f9acb0130677c4c28defc4db25d72e4ba144d..fcea1df6811638a2ad2375631bbb4b8de9d76aa6 100644 (file)
@@ -1,4 +1,4 @@
-# expm1.m4 serial 5
+# expm1.m4 serial 6
 dnl Copyright (C) 2010-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -75,7 +75,7 @@ AC_DEFUN([gl_FUNC_EXPM1],
 static double dummy (double x) { return 0; }
 int main (int argc, char *argv[])
 {
-  double (*my_expm1) (double) = argc ? expm1 : dummy;
+  double (* volatile my_expm1) (double) = argc ? expm1 : dummy;
   double y = my_expm1 (minus_zerod);
   if (!(y == 0.0) || (signbitd (minus_zerod) && !signbitd (y)))
     return 1;
index 25a80b98324378c87dc28086cc870849d2ac5ee6..7b3d96594ebbfdcf248394b751c367cb3bda3a48 100644 (file)
@@ -1,4 +1,4 @@
-# floor.m4 serial 11
+# floor.m4 serial 12
 dnl Copyright (C) 2007, 2009-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -32,7 +32,7 @@ AC_DEFUN([gl_FUNC_FLOOR],
 static double dummy (double f) { return 0; }
 int main (int argc, char *argv[])
 {
-  double (*my_floor) (double) = argc ? floor : dummy;
+  double (* volatile my_floor) (double) = argc ? floor : dummy;
   /* Test whether floor (-0.0) is -0.0.  */
   if (signbitd (minus_zerod) && !signbitd (my_floor (minus_zerod)))
     return 1;
index 6713df87327c51c4534b0c6ff06a38f67ea5409f..5fad8a504f93d7e6e8ba0bb95e74d2d9eca6f344 100644 (file)
@@ -1,4 +1,4 @@
-# floorf.m4 serial 15
+# floorf.m4 serial 16
 dnl Copyright (C) 2007, 2009-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -39,7 +39,7 @@ AC_DEFUN([gl_FUNC_FLOORF],
 static float dummy (float f) { return 0; }
 int main (int argc, char *argv[])
 {
-  float (*my_floorf) (float) = argc ? floorf : dummy;
+  float (* volatile my_floorf) (float) = argc ? floorf : dummy;
   /* Test whether floorf (-0.0f) is -0.0f.  */
   if (signbitf (minus_zerof) && !signbitf (my_floorf (minus_zerof)))
     return 1;
index 0b61649b82ae9e2e5dde8929b16ba48cd7320044..898e9e8b16ff9f08a8c2a5dccb331d66aa6c623e 100644 (file)
@@ -1,4 +1,4 @@
-# fmod.m4 serial 6
+# fmod.m4 serial 7
 dnl Copyright (C) 2011-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -39,7 +39,7 @@ numeric_equal (double x, double y)
 static double dummy (double x, double y) { return 0; }
 int main (int argc, char *argv[])
 {
-  double (*my_fmod) (double, double) = argc ? fmod : dummy;
+  double (* volatile my_fmod) (double, double) = argc ? fmod : dummy;
   int result = 0;
   double f;
   /* Test fmod(...,0.0).
index 5a6d7da69850d1017d016567b93c0d6ef875b704..42c64ab2b77bb23ed6cb78c833f8cd0143093fe4 100644 (file)
@@ -1,4 +1,4 @@
-# fmodf.m4 serial 8
+# fmodf.m4 serial 9
 dnl Copyright (C) 2011-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -46,7 +46,7 @@ numeric_equal (float x, float y)
 static float dummy (float x, float y) { return 0; }
 int main (int argc, char *argv[])
 {
-  float (*my_fmodf) (float, float) = argc ? fmodf : dummy;
+  float (* volatile my_fmodf) (float, float) = argc ? fmodf : dummy;
   float f;
   /* Test fmodf(...,0.0f).
      This test fails on OSF/1 5.1.  */
index 8d3203179a89696167d19e6d2931ffe619a3b124..1e3e9aa95768ac0527c92dd31e0fdf149fa54733 100644 (file)
@@ -1,4 +1,4 @@
-# fmodl.m4 serial 8
+# fmodl.m4 serial 9
 dnl Copyright (C) 2011-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -57,7 +57,7 @@ numeric_equal (long double x, long double y)
 static long double dummy (long double x, long double y) { return 0; }
 int main (int argc, char *argv[])
 {
-  long double (*my_fmodl) (long double, long double) = argc ? fmodl : dummy;
+  long double (* volatile my_fmodl) (long double, long double) = argc ? fmodl : dummy;
   long double f;
   /* Test fmodl(...,0.0L).
      This test fails on OSF/1 5.1.  */
index 713dfa2736ff14b1d59aa711291eb35681f6cbde..a7242a2a524b0d00ce488025b62b572cff2a877f 100644 (file)
@@ -1,4 +1,4 @@
-# hypot.m4 serial 6
+# hypot.m4 serial 7
 dnl Copyright (C) 2012-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -42,7 +42,7 @@ double zero;
 double one = 1.0;
 int main (int argc, char *argv[])
 {
-  double (*my_hypot) (double, double) = argc ? hypot : dummy;
+  double (* volatile my_hypot) (double, double) = argc ? hypot : dummy;
   double f;
   /* Test hypot(NaN,Infinity).
      This test fails on OSF/1 5.1 and native Windows.  */
index 9e0773ecfd9a7fe9798770cd39061e6930a33e65..80da9aeae6b5abc05af9f477c749e668433ed833 100644 (file)
@@ -1,4 +1,4 @@
-# hypotf.m4 serial 7
+# hypotf.m4 serial 8
 dnl Copyright (C) 2012-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -58,7 +58,7 @@ float zero;
 float one = 1.0f;
 int main (int argc, char *argv[])
 {
-  float (*my_hypotf) (float, float) = argc ? hypotf : dummy;
+  float (* volatile my_hypotf) (float, float) = argc ? hypotf : dummy;
   float f;
   /* Test hypotf(NaN,Infinity).
      This test fails on OSF/1 5.1 and native Windows.  */
index 45cc999bbe63254ab968475a6703ed96632e21b4..dcced7eef84804b9dea7d66d27ce6be66fbffdd9 100644 (file)
@@ -1,4 +1,4 @@
-# hypotl.m4 serial 8
+# hypotl.m4 serial 9
 dnl Copyright (C) 2012-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -58,7 +58,7 @@ long double zero;
 long double one = 1.0L;
 int main (int argc, char *argv[])
 {
-  long double (*my_hypotl) (long double, long double) = argc ? hypotl : dummy;
+  long double (* volatile my_hypotl) (long double, long double) = argc ? hypotl : dummy;
   long double f;
   /* Test hypotl(NaN,Infinity).
      This test fails on OSF/1 5.1 and native Windows.  */
index 67d9d22ea8d5cdd51875b97d693a93c0c8f04e26..53c3f05f27e0d4da0c3e5b4ee2abf35cd84ce463 100644 (file)
@@ -1,4 +1,4 @@
-# ilogb.m4 serial 3
+# ilogb.m4 serial 4
 dnl Copyright (C) 2010-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -85,7 +85,7 @@ static double zero;
 static int dummy (double x) { return 0; }
 int main (int argc, char *argv[])
 {
-  int (*my_ilogb) (double) = argc ? ilogb : dummy;
+  int (* volatile my_ilogb) (double) = argc ? ilogb : dummy;
   int result = 0;
   /* This test fails on OpenBSD 4.9, AIX 5.1.  */
   {
index 987400696f59659c1b63813f9f0c982dbc278713..cf0ebe4b3d633ee0722c6db0710ecbba0cc55c16 100644 (file)
@@ -1,4 +1,4 @@
-# ilogbf.m4 serial 3
+# ilogbf.m4 serial 4
 dnl Copyright (C) 2010-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -87,7 +87,7 @@ static float zero;
 static int dummy (float x) { return 0; }
 int main (int argc, char *argv[])
 {
-  int (*my_ilogbf) (float) = argc ? ilogbf : dummy;
+  int (* volatile my_ilogbf) (float) = argc ? ilogbf : dummy;
   int result = 0;
   /* This test fails on OpenBSD 4.9.  */
   {
index a164698181876d43f12aea8e66f0bc066a5f31ff..c8ba52a23e68980b97a0d575475864838b2f537c 100644 (file)
@@ -1,4 +1,4 @@
-# ilogbl.m4 serial 2
+# ilogbl.m4 serial 3
 dnl Copyright (C) 2010-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -106,7 +106,7 @@ volatile long double x;
 static int dummy (long double x) { return 0; }
 int main (int argc, char *argv[])
 {
-  int (*my_ilogbl) (long double) = argc ? ilogbl : dummy;
+  int (* volatile my_ilogbl) (long double) = argc ? ilogbl : dummy;
   int result = 0;
   /* This test fails on Haiku 2017.  */
   {
index b02acb61563b6c5e917643b16358e10732311d40..a4e2a5c5b1b54be1ad6e276ce619dc4316ee4064 100644 (file)
--- a/m4/log.m4
+++ b/m4/log.m4
@@ -1,4 +1,4 @@
-# log.m4 serial 8
+# log.m4 serial 9
 dnl Copyright (C) 2011-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -46,7 +46,7 @@ numeric_equal (double x, double y)
 static double dummy (double x) { return 0; }
 int main (int argc, char *argv[])
 {
-  double (*my_log) (double) = argc ? log : dummy;
+  double (* volatile my_log) (double) = argc ? log : dummy;
   /* Test log(negative).
      This test fails on NetBSD 5.1, Solaris 11.4.  */
   double y = my_log (-1.0);
index 102683b1943be57dae4587f5d5a4acba0b2e5642..6af662414d174eb749dd20da026b67d1e93c8a46 100644 (file)
@@ -1,4 +1,4 @@
-# log10.m4 serial 8
+# log10.m4 serial 9
 dnl Copyright (C) 2011-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -46,7 +46,7 @@ numeric_equal (double x, double y)
 static double dummy (double x) { return 0; }
 int main (int argc, char *argv[])
 {
-  double (*my_log10) (double) = argc ? log10 : dummy;
+  double (* volatile my_log10) (double) = argc ? log10 : dummy;
   /* Test log10(negative).
      This test fails on NetBSD 5.1, Solaris 11.4.  */
   double y = my_log10 (-1.0);
index 1d9ee615a25ae4ee3db0d51ba9c74993a338b771..47501dd784e3bb34018f3ebdc4c119260dfed6ce 100644 (file)
@@ -1,4 +1,4 @@
-# log10f.m4 serial 9
+# log10f.m4 serial 10
 dnl Copyright (C) 2011-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -56,7 +56,7 @@ numeric_equal (float x, float y)
 static float dummy (float x) { return 0; }
 int main (int argc, char *argv[])
 {
-  float (*my_log10f) (float) = argc ? log10f : dummy;
+  float (* volatile my_log10f) (float) = argc ? log10f : dummy;
   /* Test log10f(negative).
      This test fails on NetBSD 5.1.  */
   float y = my_log10f (-1.0f);
index 864a6d81c66cfb7d4dde4b7ba9cfc9ca5075c8ff..b5dd430b0d40a0e1ccaaeba53f762eecdf078351 100644 (file)
@@ -1,4 +1,4 @@
-# log1p.m4 serial 5
+# log1p.m4 serial 6
 dnl Copyright (C) 2012-2019 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 @@ AC_DEFUN([gl_FUNC_LOG1P],
 static double dummy (double x) { return 0; }
 int main (int argc, char *argv[])
 {
-  double (*my_log1p) (double) = argc ? log1p : dummy;
+  double (* volatile my_log1p) (double) = argc ? log1p : dummy;
   /* This test fails on AIX, HP-UX 11.  */
   double y = my_log1p (minus_zerod);
   if (!(y == 0.0) || (signbitd (minus_zerod) && !signbitd (y)))
index f4055f8cbb14d53f51e4f2fcc7b47cf77d4466ef..4a2c35a61dfb6c73c14a3ea34d29e41701dc8fb9 100644 (file)
@@ -1,4 +1,4 @@
-# log1pf.m4 serial 5
+# log1pf.m4 serial 6
 dnl Copyright (C) 2012-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -50,7 +50,7 @@ AC_DEFUN([gl_FUNC_LOG1PF],
 static float dummy (float x) { return 0; }
 int main (int argc, char *argv[])
 {
-  float (*my_log1pf) (float) = argc ? log1pf : dummy;
+  float (* volatile my_log1pf) (float) = argc ? log1pf : dummy;
   /* This test fails on OpenBSD 4.9, AIX 7.1.  */
   float y = my_log1pf (minus_zerof);
   if (!(y == 0.0f) || (signbitf (minus_zerof) && !signbitf (y)))
index 462c0e546b8cdc06047bc0aa1b6ad25a8a07060c..7def39136c791b75d910684405683f8816aab5fb 100644 (file)
@@ -1,4 +1,4 @@
-# log1pl.m4 serial 5
+# log1pl.m4 serial 6
 dnl Copyright (C) 2012-2019 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 @@ AC_DEFUN([gl_FUNC_LOG1PL],
 static long double dummy (long double x) { return 0; }
 int main (int argc, char *argv[])
 {
-  long double (*my_log1pl) (long double) = argc ? log1pl : dummy;
+  long double (* volatile my_log1pl) (long double) = argc ? log1pl : dummy;
   /* This test fails on AIX 7.1, IRIX 6.5.  */
   long double y = my_log1pl (minus_zerol);
   if (!(y == 0.0L) || (signbitl (minus_zerol) && !signbitl (y)))
index 7fd56faa97954869ec303add001a7df7dd650d4f..bd8b3cff0c97431470117c0e53f2ac79803e94b5 100644 (file)
@@ -1,4 +1,4 @@
-# log2.m4 serial 7
+# log2.m4 serial 8
 dnl Copyright (C) 2010-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -67,7 +67,7 @@ numeric_equal (double x, double y)
 static double dummy (double x) { return 0; }
 int main (int argc, char *argv[])
 {
-  double (*my_log2) (double) = argc ? log2 : dummy;
+  double (* volatile my_log2) (double) = argc ? log2 : dummy;
   /* Test log2(negative).
      This test fails on NetBSD 5.1 and Solaris 10/x86_64.  */
   double y = my_log2 (-1.0);
index b294b7f680a1276f2e48ce80800dc5bb8459718d..63b8458ca94483c2066864f1f7d8f180b6108e38 100644 (file)
@@ -1,4 +1,4 @@
-# log2f.m4 serial 7
+# log2f.m4 serial 8
 dnl Copyright (C) 2010-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -68,7 +68,7 @@ numeric_equal (float x, float y)
 static float dummy (float x) { return 0; }
 int main (int argc, char *argv[])
 {
-  float (*my_log2f) (float) = argc ? log2f : dummy;
+  float (* volatile my_log2f) (float) = argc ? log2f : dummy;
   /* Test log2f(negative).
      This test fails on NetBSD 5.1 and Solaris 10/x86_64.  */
   float y = my_log2f (-1.0f);
index ac0aab73b5608cc2c1aff0ededf5297d837d9b6c..6b9e5bbf1f472e47b1567805f81171109daf2619 100644 (file)
@@ -1,4 +1,4 @@
-# logf.m4 serial 9
+# logf.m4 serial 10
 dnl Copyright (C) 2011-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -56,7 +56,7 @@ numeric_equal (float x, float y)
 static float dummy (float x) { return 0; }
 int main (int argc, char *argv[])
 {
-  float (*my_logf) (float) = argc ? logf : dummy;
+  float (* volatile my_logf) (float) = argc ? logf : dummy;
   /* Test logf(negative).
      This test fails on NetBSD 5.1.  */
   float y = my_logf (-1.0f);
index 6d86d32ba1788059043f15464a786d737b8dd8f6..b5038441a3aaba59cd7c702973a1f5c0184e950c 100644 (file)
@@ -1,4 +1,4 @@
-# modf.m4 serial 5
+# modf.m4 serial 6
 dnl Copyright (C) 2011-2019 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 @@ double zero;
 double minus_one = - 1.0;
 int main (int argc, char *argv[])
 {
-  double (*my_modf) (double, double *) = argc ? modf : dummy;
+  double (* volatile my_modf) (double, double *) = argc ? modf : dummy;
   int result = 0;
   double i;
   double f;
index c7b2a17b04a9fde90fb32ea43b66d6e97fff9a68..e1fbf1db8f0e64f8d73dd2cd2544265132d82161 100644 (file)
@@ -1,4 +1,4 @@
-# modff.m4 serial 7
+# modff.m4 serial 8
 dnl Copyright (C) 2011-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -49,7 +49,7 @@ float zero;
 float minus_one = - 1.0f;
 int main (int argc, char *argv[])
 {
-  float (*my_modff) (float, float *) = argc ? modff : dummy;
+  float (* volatile my_modff) (float, float *) = argc ? modff : dummy;
   int result = 0;
   float i;
   float f;
index 8b5bc7b10be3e7a7217c9ecb38ed479f2ad2ea00..fc32cd648fc34b72a1f29cbe83b59b0066a1f8c8 100644 (file)
@@ -1,4 +1,4 @@
-# modfl.m4 serial 5
+# modfl.m4 serial 6
 dnl Copyright (C) 2011-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -49,7 +49,7 @@ long double zero;
 long double minus_one = - 1.0L;
 int main (int argc, char *argv[])
 {
-  long double (*my_modfl) (long double, long double *) = argc ? modfl : dummy;
+  long double (* volatile my_modfl) (long double, long double *) = argc ? modfl : dummy;
   long double i;
   long double f;
   /* Test modfl(-Inf,...).
index 0e9d19e9e052f61454c05d9e9a5234896a74765c..58548bad0c1ff396794b8c75a431b2b87a318562 100644 (file)
@@ -1,4 +1,4 @@
-# remainder.m4 serial 6
+# remainder.m4 serial 7
 dnl Copyright (C) 2012-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -79,7 +79,7 @@ numeric_equal (double x, double y)
 static double dummy (double x, double y) { return 0; }
 int main (int argc, char *argv[])
 {
-  double (*my_remainder) (double, double) = argc ? remainder : dummy;
+  double (* volatile my_remainder) (double, double) = argc ? remainder : dummy;
   double f;
   /* Test remainder(...,0.0).
      This test fails on OSF/1 5.1.  */
index ff4e98d56371fd045c159f33b4970524fcef4f89..5ab511a150016a1cd6ba8e2bfb75d269c42e45f2 100644 (file)
@@ -1,4 +1,4 @@
-# remainderf.m4 serial 10
+# remainderf.m4 serial 11
 dnl Copyright (C) 2012-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -82,7 +82,7 @@ numeric_equal (float x, float y)
 static float dummy (float x, float y) { return 0; }
 int main (int argc, char *argv[])
 {
-  float (*my_remainderf) (float, float) = argc ? remainderf : dummy;
+  float (* volatile my_remainderf) (float, float) = argc ? remainderf : dummy;
   float f;
   /* Test remainderf(...,0.0f).
      This test fails on OSF/1 5.1.  */
index cfa94f5443d88e4d84cbdb8992e289fcaf0564e6..85ed6befa8e506300a8b5c5d316b98bf909462ea 100644 (file)
@@ -1,4 +1,4 @@
-# remainderl.m4 serial 9
+# remainderl.m4 serial 10
 dnl Copyright (C) 2012-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -87,7 +87,7 @@ numeric_equal (long double x, long double y)
 static long double dummy (long double x, long double y) { return 0; }
 int main (int argc, char *argv[])
 {
-  long double (*my_remainderl) (long double, long double) = argc ? remainderl : dummy;
+  long double (* volatile my_remainderl) (long double, long double) = argc ? remainderl : dummy;
   long double f;
   /* Test remainderl(...,0.0L).
      This test fails on OSF/1 5.1.  */
index cbc9f023c5ff236a56eb00ff4d600b0d70cb472b..49ae315ffebe392767711500be08e4ddc59d8af8 100644 (file)
@@ -1,4 +1,4 @@
-# round.m4 serial 19
+# round.m4 serial 20
 dnl Copyright (C) 2007, 2009-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -103,7 +103,7 @@ double round (double);
 static double dummy (double f) { return 0; }
 int main (int argc, char *argv[])
 {
-  double (*my_round) (double) = argc ? round : dummy;
+  double (* volatile my_round) (double) = argc ? round : dummy;
   /* Test whether round (-0.0) is -0.0.  */
   if (signbitd (minus_zerod) && !signbitd (my_round (minus_zerod)))
     return 1;
index e0530ba19c0b43ffb927a2553b98655e07b632e6..07f816e2c078a33e426b2e8ebbc8a6a41059f953 100644 (file)
@@ -1,4 +1,4 @@
-# roundf.m4 serial 20
+# roundf.m4 serial 21
 dnl Copyright (C) 2007-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -99,7 +99,7 @@ float roundf (float);
 static float dummy (float f) { return 0; }
 int main (int argc, char *argv[])
 {
-  float (*my_roundf) (float) = argc ? roundf : dummy;
+  float (* volatile my_roundf) (float) = argc ? roundf : dummy;
   int result = 0;
   /* Test whether roundf (-0.0f) is -0.0f.  */
   if (signbitf (minus_zerof) && !signbitf (my_roundf (minus_zerof)))
index 0bc039127901d6cf2123e595a03f0af77ce1f357..95eed1bd05ebb806ffdb5b914b26ee557fc3c3e0 100644 (file)
@@ -1,4 +1,4 @@
-# roundl.m4 serial 17
+# roundl.m4 serial 18
 dnl Copyright (C) 2007, 2009-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -50,7 +50,7 @@ long double roundl (long double);
 static long double dummy (long double f) { return 0; }
 int main (int argc, char *argv[])
 {
-  long double (*my_roundl) (long double) = argc ? roundl : dummy;
+  long double (* volatile my_roundl) (long double) = argc ? roundl : dummy;
   int result = 0;
   /* Test whether roundl (-0.0L) is -0.0L.  */
   if (signbitl (minus_zerol) && !signbitl (my_roundl (minus_zerol)))
index ef8d59bc7c38fbb8cb3b51d21319f3094376e68f..056d56de80a9954719c5e8817f50721a3fe3ef35 100644 (file)
@@ -1,4 +1,4 @@
-# trunc.m4 serial 12
+# trunc.m4 serial 13
 dnl Copyright (C) 2007, 2010-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -62,7 +62,7 @@ AC_DEFUN([gl_FUNC_TRUNC],
 static double dummy (double f) { return 0; }
 int main (int argc, char *argv[])
 {
-  double (*my_trunc) (double) = argc ? trunc : dummy;
+  double (* volatile my_trunc) (double) = argc ? trunc : dummy;
   /* Test whether trunc (-0.0) is -0.0.  */
   if (signbitd (minus_zerod) && !signbitd (my_trunc (minus_zerod)))
     return 1;
index af6eeeb061ef5a87081169b60b72000569020859..1ee987b711092d8edd91ae62f162d1cf6f20e6bf 100644 (file)
@@ -1,4 +1,4 @@
-# truncf.m4 serial 12
+# truncf.m4 serial 13
 dnl Copyright (C) 2007, 2010-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -62,7 +62,7 @@ AC_DEFUN([gl_FUNC_TRUNCF],
 static float dummy (float f) { return 0; }
 int main (int argc, char *argv[])
 {
-  float (*my_truncf) (float) = argc ? truncf : dummy;
+  float (* volatile my_truncf) (float) = argc ? truncf : dummy;
   /* Test whether truncf (-0.0f) is -0.0f.  */
   if (signbitf (minus_zerof) && !signbitf (my_truncf (minus_zerof)))
     return 1;
index 65f1fcecf4e24edb75680b43d21cae5e0c564e7b..b03d04cc1167936a2fb8b50f2d4f281d1a87bfd0 100644 (file)
@@ -1,4 +1,4 @@
-# truncl.m4 serial 14
+# truncl.m4 serial 15
 dnl Copyright (C) 2007-2008, 2010-2019 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -95,7 +95,7 @@ int main()
 static long double dummy (long double f) { return 0; }
 int main (int argc, char *argv[])
 {
-  long double (*my_truncl) (long double) = argc ? truncl : dummy;
+  long double (* volatile my_truncl) (long double) = argc ? truncl : dummy;
   /* Test whether truncl (-0.3L) is -0.0L.  */
   if (signbitl (minus_zerol) && !signbitl (my_truncl (-0.3L)))
     return 1;