[PATCH] Require GMP 4.2 and MPFR 2.2

Steve Kargl sgk@troutmask.apl.washington.edu
Sat May 13 16:08:00 GMT 2006


On Sat, May 13, 2006 at 04:31:34PM +0200, Richard Guenther wrote:
> On 5/13/06, Gerald Pfeifer <gerald@pfeifer.com> wrote:
> >On Sat, 29 Apr 2006, Steve Kargl wrote:
> >> 2006-04-29  Steven G. Kargl  <kargls@comcast.net>
> >>
> >>       * configure.in: Require MPFR 2.2 or newer for gfortran.  Raise
> >>       the require on GMP to 4.1
> >>       * configure: Regenerated.
> >>       * gcc/doc/install.texi: Document the new requirements.
> >
> >I believe the configure changes are still awaiting review, but the
> >install.texi changes describe the current requirements so I suggest
> >to go ahead and commit this part.
> 
> Now, I believe the proposed patch would lock out SUSE 10.1 from
> compiling fortran this way, because the mpfr.h header that ships with
> its gmp 4.1.4 does not have any VERSION defines included.  So I
> strongly object to making this change for the gcc 4.2 release.  Or at least
> you should be aware that you'll lose a quite amount of patch-testing
> coverage this way.

Sigh.  I've gone over this in other emails.  (1) The version of
MPFR in gmp 4.1.x is buggy.  The MPFR developers tell people to
avoid that version and to upgrade to at least version 2.0.  (2)
There are two new functions in MPFR 2.2.0 that I wish to use.  In
one case, mpfr_subnormalize() will fix a bug in gfortran and it
will replace a very hackish attempt at handling subnormals in
gfortran.  I know its hackish because I wrote the code.  In the
other case, mpfr_atan2() will replace a homegrown version atan2()
used in constant folding. (3) MPFR 2.2.0 was released 8 months ago.
It can be used with GMP 4.1 and higher versions.

-- 
Steve



More information about the Gcc-patches mailing list