r117933: cross-bootstrap issue: cross-GMP/MPFR needed?

Torbjorn Granlund tege at swox.com
Wed Oct 25 12:57:21 CEST 2006


Jan-Benedict Glaw <jbglaw at lug-owl.de> writes:

  add_n.s is linked from some vax directory. Unfortunately, they use old
  assembly there which current GAS will not assemble:
  
   30 .text
   31         .align 1
   32 .globl ___gmpn_add_n
   33 ___gmpn_add_n:
   34         .word   0x0
   35         movl    16(ap),r0
   36         movl    12(ap),r1
   37         movl    8(ap),r2
   38         movl    4(ap),r3
   39         mnegl   r0,r5
   40         addl2   $3,r0
  
  When accessing the AP register, the name should be prefixed with '%'.
  The assembly function's name had one _ too much in front, as well as
  the .type ..., @function was missing.
  
It is not "old syntax", it is aout syntax.

  With this patch to gmp, I can build GCC (build=i686-linux,
  host=target=vax-linux-uclibc). It's not yet tested at all, though...
  
Unfortunately, I have to reject your patch.

To port this to ELF systems (which I suppose GNU/Linux for VAX is) you
need to use the .asm style, and let m4 to the register prefixing.

-- 
Torbjörn


More information about the gmp-bugs mailing list