This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH]: Update minimum MPC version to 0.8
- From: "Kaveh R. GHAZI" <ghazi at caip dot rutgers dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 5 Nov 2009 14:33:53 -0500 (EST)
- Subject: [PATCH]: Update minimum MPC version to 0.8
This patch bumps the minimum MPC version used by GCC to 0.8.
Note MPC is still optional, this patch doesn't change that.
I expect to make MPC hard-required soon, however I plan to post a
notice and transition period while everyone installs it on their
machines. In the mean time, this will ensure people use the right
version.
Tested on x86_64-unknown-linux-gnu with and without mpc-0.8. No
regressions. I also verified that GCC's configure now rejects the
older MPC release.
Okay for mainline?
Thanks,
--Kaveh
(PS: I don't have write access to binutils, if someone would copy the
configure.ac bits there, I would appreciate it, thx.)
2009-10-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* configure.ac: Update minimum MPC version to 0.8.
* configure: Regenerate.
gcc:
* doc/install.texi: Update minimum MPC version to 0.8.
diff -rup orig/egcc-SVN20091008/configure.ac egcc-SVN20091008/configure.ac
--- orig/egcc-SVN20091008/configure.ac 2009-10-04 02:00:42.000000000 +0200
+++ egcc-SVN20091008/configure.ac 2009-10-08 20:06:06.000000000 +0200
@@ -1365,7 +1365,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,7,0)
+ #if MPC_VERSION < MPC_VERSION_NUM (0,8,0)
choke me
#endif
], [AC_MSG_RESULT([yes]); have_mpc=maybe],
@@ -1412,6 +1412,7 @@ if test -d ${srcdir}/gcc && test "x$have
mpc_neg (n, n, MPC_RNDNN);
mpc_sqr (n, n, MPC_RNDNN);
mpc_pow (n, n, n, MPC_RNDNN);
+ mpc_acosh (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-SVN20091008/gcc/doc/install.texi egcc-SVN20091008/gcc/doc/install.texi
--- orig/egcc-SVN20091008/gcc/doc/install.texi 2009-10-04 02:00:19.000000000 +0200
+++ egcc-SVN20091008/gcc/doc/install.texi 2009-10-08 20:07:14.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.7.0 (or later)
+@item MPC Library version 0.8.0 (or later)
Optional when building GCC@. Having this library will enable
additional optimizations on complex numbers. It can be downloaded