Move statements after variable decls in mpfr.h configure check

Matt Kraai kraai@ftbfs.org
Tue Feb 27 15:27:00 GMT 2007


Howdy,

The top-level configure's check for mpfr.h contains some statements
before some variable declarations, which cause it to fail on systems
with a C90 compiler.

The attached patch moves the statements after the declarations.

I tested that configure was fixed on a system with a C90 compiler and
bootstrapped and regression tested on i686-pc-linux-gnu.

OK to commit?

-- 
Matt                                                   http://ftbfs.org/

2007-02-26  Matt Kraai  <kraai@ftbfs.org>

	* configure: Regenerate.
	* configure.ac: Move statements after variable declarations.

Index: configure
===================================================================
--- configure	(revision 122340)
+++ configure	(working copy)
@@ -4476,9 +4476,11 @@
     #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0)
     choke me
     #endif
-    mpfr_t n; mpfr_init(n);
-    mpfr_t x; mpfr_init(x);
+    mpfr_t n;
+    mpfr_t x;
     int t;
+    mpfr_init (n);
+    mpfr_init (x);
     mpfr_atan2 (n, n, x, GMP_RNDN);
     mpfr_erfc (n, x, GMP_RNDN);
     mpfr_subnormalize (x, t, GMP_RNDN);
Index: configure.ac
===================================================================
--- configure.ac	(revision 122340)
+++ configure.ac	(working copy)
@@ -1163,9 +1163,11 @@
     #if MPFR_VERSION < MPFR_VERSION_NUM(2,2,0)
     choke me
     #endif
-    mpfr_t n; mpfr_init(n);
-    mpfr_t x; mpfr_init(x);
+    mpfr_t n;
+    mpfr_t x;
     int t;
+    mpfr_init (n);
+    mpfr_init (x);
     mpfr_atan2 (n, n, x, GMP_RNDN);
     mpfr_erfc (n, x, GMP_RNDN);
     mpfr_subnormalize (x, t, GMP_RNDN);



More information about the Gcc-patches mailing list