]> www.ginac.de Git - cln.git/commitdiff
Support for gcc-4.3 snapshots.
authorBruno Haible <bruno@clisp.org>
Sun, 24 Feb 2008 18:56:36 +0000 (18:56 +0000)
committerBruno Haible <bruno@clisp.org>
Sun, 24 Feb 2008 18:56:36 +0000 (18:56 +0000)
ChangeLog
autoconf/floatparam.c

index 223f0c50c697b7cba03703f351a33070caa679b4..746e0b4aaa8a7d0ee124bd1d7603234429bf12ac 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-02-23  Bruno Haible  <bruno@clisp.org>
+
+       Support for gcc-4.3 snapshots.
+       * autoconf/floatparam.c (check): Change argument types to
+       'volatile type*'. This defeats optimizations of gcc 4.3.0 snapshots.
+
 2007-02-23  Bruno Haible  <bruno@clisp.org>
 
        Change "make alls" and "make allo" to recurse into subdirectories.
index a88637165a3912398d90212d479a1894d4498746..195a69847ae1450a4a30f7e8c5f11c4fa944a108 100644 (file)
@@ -29,7 +29,7 @@ static void header (void)
 }
 
 #define check(type,typeprefix,typestr,equalfn,mainfn)  \
-static boolean equalfn (type* x, type* y);                             \
+static boolean equalfn (volatile type* x, volatile type* y);           \
 static void mainfn (void)                                              \
 {                                                                      \
   int mant_bits;                                                       \
@@ -79,7 +79,10 @@ static void mainfn (void)                                            \
   }                                                                    \
   printf("\n");                                                                \
 }                                                                      \
-static boolean equalfn (type* x, type* y) { return *x == *y; }         \
+static boolean equalfn (volatile type* x, volatile type* y)            \
+{                                                                      \
+  return *x == *y;                                                     \
+}                                                                      \
 
 check(float,"float","float",equal_float,main_float)
 check(double,"double","double",equal_double,main_double)