bug-gmp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: error: 'TMP_DECL' undeclared when compiling with --enable-alloca=deb


From: Vincent Lefevre
Subject: Re: error: 'TMP_DECL' undeclared when compiling with --enable-alloca=debug
Date: Wed, 5 Apr 2006 14:18:45 +0200
User-agent: Mutt/1.5.11-vl-20060331

On 2006-04-05 14:10:53 +0200, Vincent Lefevre wrote:
> I've configured GMP 4.2 with:
> 
>   ./configure --prefix=$HOME/$ARCHTYPE/gmp-4.2-assert \
>     --enable-assert --enable-alloca=debug
> 
> under Linux/x86_64. I get the following error when building GMP:
> 
> [...]
> Making all in mpn
> make[2]: Entering directory `/cluster/achille/lefevre/software/gmp-4.2/mpn'
> /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. 
> -D__GMP_WITHIN_GMP -I.. -DOPERATION_`echo divis | sed 's/_$//'`    -O2 -m64 
> -mtune=k8 -c -o divis.lo divis.c
>  gcc -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_divis 
> -O2 -m64 -mtune=k8 -c divis.c  -fPIC -DPIC -o .libs/divis.o
> divis.c: In function '__gmpn_divisible_p':
> divis.c:76: error: 'TMP_DECL' undeclared (first use in this function)
[...]

The gmp-impl.h file seems to be incorrect when WANT_TMP_DEBUG is defined:

#if HAVE_STRINGIZE
#define TMP_DECL(marker) TMP_DECL_NAME(marker, #marker)
#define TMP_MARK(marker) TMP_MARK_NAME(marker, #marker)
#define TMP_FREE(marker) TMP_FREE_NAME(marker, #marker)
#else
#define TMP_DECL(marker) TMP_DECL_NAME(marker, "marker")
#define TMP_MARK(marker) TMP_MARK_NAME(marker, "marker")
#define TMP_FREE(marker) TMP_FREE_NAME(marker, "marker")
#endif

but the marker was dropped in GMP 4.2.

-- 
Vincent Lefèvre <address@hidden> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA




reply via email to

[Prev in Thread] Current Thread [Next in Thread]