cc: assembler failed for tmp-divrem_2.s

Torbjorn Granlund tg at gmplib.org
Mon Mar 29 12:28:07 CEST 2010


Dennis Clarke <dclarke at blastwave.org> writes:

  I know that I can build gmp 5.0.1 neatly with GCC but I had to try with
  Studio 11 again.
  
Is "Studio 11" a recent or an old version of Sun's compiler?

At KTH, we're a Slowaris shop.  On one of the few x86 machines I get
this:

  $ cc -V
  cc: Sun C 5.8 2005/10/13
  usage: cc [ options] files.  Use 'cc -flags' for details

This compiler has no problems with byte "or" instructions.

This problem has been reported several times before, and my hope is that
Sun would fix it at some point.  If "Studio 11" is indeed new, then
perhaps they have decided to keep this bug.

Can their tools cope with "xor %dl,%al" and "and %dl,%al"?
How about "orb %dl,%al"  "xorb %dl,%al" and "andb %dl,%al"?

I don't know what configuration you used, since you don't seem to
specify that.  But it seems you forced ABI=32 or perhaps run solaris on
a 32-bit x86.

The file mpn/x86/divrem_2.asm will then be chosen, and it indeed
contains some "or" instructions with byte registers.

-- 
Torbjörn


More information about the gmp-bugs mailing list