tege at swox.com
Tue Sep 21 18:02:44 CEST 2004
Patrick Pelissier <Patrick.Pelissier at loria.fr> writes:
> No need, I checked the GCC change logs and found that builtin_constant_p
> was added Mars 1991 and that 2.0 was released in February 1992.
> Can you check if GCC 1.42 defined __GNUC__ to 1, or if it defined it to
GCC 1.42 defines __GNUC__ to 1.
> Please also try this snippet in gmp-impl.h:
> /* Dummy for non-gcc, code involving it will go dead. */
> #if ! defined (__GNUC__) || __GNUC__ < 2
> #define __builtin_constant_p(x) 0
'__builtin_constant_p' is also used in gmp.h, so I don't think
using such a code is a good idea.
I don't understand.
"Such a code" is also needed for gmp-h.in:
/* When using GCC, optimize certain common comparisons. */
- #if defined (__GNUC__)
+ #if defined (__GNUC__) && __GNUC__ >= 2
#define mpz_cmp_ui(Z,UI) \
More information about the gmp-devel