TMP_* defines for gmp 6.1.0 build broken in ./generic subdir

Marc Glisse marc.glisse at inria.fr
Sat Nov 14 18:36:18 UTC 2015


On Fri, 13 Nov 2015, Michael Jones wrote:

> The gmp-impl.h header has TMP_* defines as conditionals, but the use
> throughout some code (for instance, the generic branch) does not match
> the conditional expressions.
>
> Example:
>
>>>>>> #if WANT_TMP_ALLOCA
> #define TMP_SDECL
> #define TMP_DECL		struct tmp_reentrant_t *__tmp_marker
> <lines excluded>
> #define TMP_FREE							\
> <lines excluded>
> #endif

There are many versions of TMP_DECL, protected by:
WANT_TMP_ALLOCA
WANT_TMP_REENTRANT
WANT_TMP_NOTREENTRANT
WANT_TMP_DEBUG

One of those is always defined.

What were you doing that caused an error?

-- 
Marc Glisse


More information about the gmp-bugs mailing list