GMP 4.2.4 probably miscompiled by GCC 4.3.2 (debian lenny) on mips64el with -mabi=64: t-divrem_1 and t-fat FAIL

Torbjorn Granlund tg at swox.com
Sat Feb 28 21:37:29 CET 2009


Laurent GUERBY <laurent at guerby.net> writes:

  Interestingly when I tried to build  -mabi=64 with GCC trunk (4.4) I
  got:
  
  /bin/sh ../libtool --mode=compile gcc -mabi=64 -DHAVE_CONFIG_H -I. -I.
  -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_`echo dive_1 | sed 's/_$//'`
  -O2 -mabi=64 -c -o dive_1.lo dive_1.c
  gcc -mabi=64 -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I..
  -DOPERATION_dive_1 -O2 -mabi=64 -c dive_1.c -o dive_1.o
  dive_1.c: In function '__gmpn_divexact_1':
  dive_1.c:115: error: impossible constraint in 'asm'
  dive_1.c:136: error: impossible constraint in 'asm'
  make[2]: *** [dive_1.lo] Error 1

Apparelntly, the "h" register constraint was removed in 4.4, for
unclear reasons.  See http://gcc.gnu.org/gcc-4.4/changes.html.

-- 
Torbjörn


More information about the gmp-bugs mailing list