This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Require GMP 4.2 and MPFR 2.2


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
--


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]