Maamoun TK maamoun.tk@googlemail.com writes:
If these registers are used explicitly, GAS will yield a bunch of errors like "Error: unsupported relocation against r1" unless "-mregnames" is passed to the assembler. I can add "-Wa,-mregnames" to CFLAGS in configure.ac and modify the assembly files to improve the syntax.
I think I'll adopt the configure check and related m4 things from GMP. It's documented like this:
dnl GMP_ASM_POWERPC_R_REGISTERS dnl --------------------------- dnl Determine whether the assembler takes powerpc registers with an "r" as dnl in "r6", or as plain "6". The latter is standard, but NeXT, Rhapsody, dnl and MacOS-X require the "r" forms. dnl dnl See also mpn/powerpc32/powerpc-defs.m4 which uses the result of this dnl test.
I'd like to also try out -Wa,-mregnames, if that's needed for register names on more mainstream ppc systems.
Regards, /Niels