Include dummy ASM_END definition in mpn/asm-defs.m4 for PowerPC

David Chau ddcc at MIT.EDU
Tue Apr 11 02:02:00 CEST 2006


Hi,

I'm trying to build GnuMP 4.2 for an embedded PowerPC system, using the
compiler from Green Hills, and using Cygwin to provide the shell. I
configured with --host=powerpc405-unknown-none.

GnuMP seems to configure and build more or less out-of-the-box, using the
assembly versions of functions where appropriate (which is great!), but I
ran into a few problems:

- The M4 macro ASM_END is undefined, since only Linux, AIX, and Darwin on
PowerPC defines it, and I'm using none of those OS's. Could you add a dummy
definition for ASM_END to mpn/asm-defs.m4, similar to the dummy definition
of ASM_START?

- mode1o.asm uses the macro LEA(r7, modlimb_invert_table). Again, this is
defined only for AIX, Darwin, and Linux. Can you tell me if there's a
reasonably generic implementation of this macro for PowerPC (maybe assuming
that we're not building PIC)?

Thanks!
David


More information about the gmp-bugs mailing list