enhancement for gmp package to be buildable by Intel compiler on IA64

James Antill james at and.org
Thu Oct 16 17:56:29 CEST 2003


Torbjorn Granlund <tg at swox.com> writes:

> "Logovskaya, Ekaterina" <ekaterina.logovskaya at intel.com> writes:
> 
>   Here is the simplest patch, which prevents using asm inlines while
>   building package with Intel Compiler. Please take a look at it. I think
>   other gmp users could be interested in this because it would only
>   increase gmp portability and therefore attraction.
>   
>    #if defined (__ia64) && W_TYPE_SIZE == 64
>   
>   -#if defined (__GNUC__)
>   
>   +#if defined (__GNUC__) && !defined(__INTEL_COMPILER)
>   
>    #define umul_ppmm(ph, pl, m0, m1) \
>   
> I don't understand that patch.  We already check that
> we're using the GNU compiler ("__GNUC__"), which should
> make check we are not using __INTEL_COMPILER redundant.

 The intel compiler defines __GNUC__ and implements "most" of the gcc
extensions. The better fix is probably to autoconf for the feature you
are using.

-- 
James Antill -- james at and.org
Need an efficient and powerful string library for C?
http://www.and.org/vstr/


More information about the gmp-devel mailing list