This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Move statements after variable decls in mpfr.h configure check
- From: Matt Kraai <kraai at ftbfs dot org>
- To: gcc-patches at gcc dot gnu dot org
- Date: Tue, 27 Feb 2007 14:23:32 +0100
- Subject: Move statements after variable decls in mpfr.h configure check
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);