5.1.2 assembler error on Solaris 10 with CC='cc -xtarget=opteron -xarch=amd64'

Marc Glisse marc.glisse at inria.fr
Tue Oct 8 09:47:38 CEST 2013


On Tue, 8 Oct 2013, Daniel Richard G. wrote:

> On Tue, 2013 Oct  8 8:19+0200, Marc Glisse wrote:
>>
>> You must be using an ancient version of that compiler, since AFAIK it
>> understands -m64 now. Could you use a more recent version?
>
> Getting updates for Sun products is not easy now that Oracle runs
> the show :(

But downloading Solaris Studio 12.3 is easy, even if you can't get 
patches.

>  $ which cc
>  /opt/SUNWspro/bin/cc
>  $ cc -V
>  cc: Sun C 5.7 Patch 117837-08 2006/04/19

That's pretty old indeed!

>        mov     %ecx, %eax
>        shr     $2, %rcx    <---- line 86
>        and     $3, %eax
>        bt      $0, %r8     <---- line 88
>        jrcxz   .Llt4

I am afraid the answer will be: use a different toolchain. Either updated 
Sun/Oracle tools, or even better gcc with gas (binutils).

-- 
Marc Glisse


More information about the gmp-bugs mailing list