This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH configure & RFH copy2src]: Update minimum MPC version to 0.7
- From: "Kaveh R. GHAZI" <ghazi at caip dot rutgers dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 9 Sep 2009 12:03:54 -0400 (EDT)
- Subject: [PATCH configure & RFH copy2src]: Update minimum MPC version to 0.7
The next release of MPC will be out in a few days. As I work on MPC
issues, it'll make testing easier if I can ignore the older release.
So this patch updates GCC's configure to require the new version (0.7) to
activate use of MPC within GCC. Note MPC is still optional at this point,
so only people actively testing with mpc-0.6 will need to upgrade in order
to continue using it.
If this patch is approved, obviously I'll hold off installing until the
actual release of mpc-0.7 which I've been told will be Friday or Monday.
I don't have access to src, so if someone would please volunteer to
propagate this patch over there I'd very much appreciate it. I've
included the regenerated configure bits in here to make it easier to just
copy it over.
Tested on x86_64-unknown-linux-gnu without MPC and with the mpc-0.7-dev
prerelease tarball. No regressions. I also configured with mpc-0.6 to
ensure GCC no longer activates MPC code when using that older release.
Okay for mainline when the new MPC is released?
Thanks,
--Kaveh
2009-09-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* configure.ac: Update minimum MPC version to 0.7.
* configure: Regenerate.
gcc:
* doc/install.texi: Update minimum MPC version to 0.7.
diff -rup orig/egcc-SVN20090908/configure.ac egcc-SVN20090908/configure.ac
--- orig/egcc-SVN20090908/configure.ac 2009-09-05 02:01:21.000000000 +0200
+++ egcc-SVN20090908/configure.ac 2009-09-08 18:31:17.000000000 +0200
@@ -1352,7 +1352,7 @@ if test -d ${srcdir}/gcc && test "x$have
CFLAGS="$CFLAGS $mpcinc"
AC_MSG_CHECKING([for the correct version of mpc.h])
AC_TRY_COMPILE([#include <mpc.h>],[
- #if MPC_VERSION < MPC_VERSION_NUM (0,6,0)
+ #if MPC_VERSION < MPC_VERSION_NUM (0,7,0)
choke me
#endif
], [AC_MSG_RESULT([yes]); have_mpc=maybe],
@@ -1398,6 +1398,7 @@ if test -d ${srcdir}/gcc && test "x$have
mpc_proj (n, n, MPC_RNDNN);
mpc_neg (n, n, MPC_RNDNN);
mpc_sqr (n, n, MPC_RNDNN);
+ mpc_pow (n, n, n, MPC_RNDNN);
mpc_clear (n);
], [AC_MSG_RESULT([yes]); have_mpc=yes],
[AC_MSG_RESULT([no]); have_mpc=no; mpclibs= ; mpcinc= ])
diff -rup orig/egcc-SVN20090908/gcc/doc/install.texi egcc-SVN20090908/gcc/doc/install.texi
--- orig/egcc-SVN20090908/gcc/doc/install.texi 2009-09-04 02:00:37.000000000 +0200
+++ egcc-SVN20090908/gcc/doc/install.texi 2009-09-08 17:50:29.000000000 +0200
@@ -344,7 +344,7 @@ not installed in your default library se
Necessary to build libgcj, the GCJ runtime.
-@item MPC Library version 0.6.0 (or later)
+@item MPC Library version 0.7.0 (or later)
Optional when building GCC@. Having this library will enable
additional optimizations on complex numbers. It can be downloaded
diff -rup orig/egcc-SVN20090908/configure egcc-SVN20090908/configure
--- orig/egcc-SVN20090908/configure 2009-09-05 02:01:21.000000000 +0200
+++ egcc-SVN20090908/configure 2009-09-08 18:31:35.000000000 +0200
@@ -5264,7 +5264,7 @@ int
main ()
{
- #if MPC_VERSION < MPC_VERSION_NUM (0,6,0)
+ #if MPC_VERSION < MPC_VERSION_NUM (0,7,0)
choke me
#endif
@@ -5348,6 +5348,7 @@ main ()
mpc_proj (n, n, MPC_RNDNN);
mpc_neg (n, n, MPC_RNDNN);
mpc_sqr (n, n, MPC_RNDNN);
+ mpc_pow (n, n, n, MPC_RNDNN);
mpc_clear (n);
;