[Python-Dev] [Python-checkins] cpython (3.3): Change libmpdec to use ANSI code in strict ansi mode as inline asm isn't

Stefan Krah stefan at bytereef.org
Sun Sep 30 16:39:34 CEST 2012

christian.heimes <python-checkins at python.org> wrote:
> +/* ASM isn't available in strict ansi C mode */
> +#if defined(ASM) && defined(__STRICT_ANSI__)
> +  #undef ASM
> +  #define ANSI
> +#endif

I'm not too fond of this solution: the libmpdec build output should always
be accurate. Now you have ...

   -ansi -DCONFIG_64=1 -DASM=1

... but the build is silently non-asm.

Like for pymath.c, __asm__ is tested for and selected in ./configure. So I'll
replace asm with __asm__, same as in pymath.c and ceval.c.

Stefan Krah

More information about the Python-Dev mailing list