[PATCH] Require GMP 4.2 and MPFR 2.2

Roger Sayle roger@eyesopen.com
Mon May 15 06:28:00 GMT 2006


Hi Steve,

Cool!  Thanks for posting.  These look like worthwhile improvements.


On Sun, 14 May 2006, Steve Kargl wrote:
> The compromise would require "#ifdef MPFR_VERSION >= 2" type
> preprocessing directives in the code.  This would mean that
> the configure.in patch probably isn't needed.

The preferred idiom is not to use "#ifdef MPFR_VERSION >= 2" tests,
but instead have autoconf/configure define HAVE_MPFR_ATAN2,
HAVE_MPFR_SUBNORMALIZE, HAVE_MPFR_NEXTTOWARD and similar macros
that test for functionality and not specific package versions.

It does look like there are two or three (maybe four) independent
changes that could each go in as separate patches, using the
new functionality if available, and the old code as a fall back
if not.  So it looks like there isn't a technical reason to
require new versions of MPFR, though I appreciate there may be
a non-technical agenda (upon which I'll not comment here).

Roger
--



More information about the Gcc-patches mailing list