6.0.0a: --disable-assembly broken on sparc64
Marc Glisse
marc.glisse at inria.fr
Sat Sep 13 21:01:06 UTC 2014
On Wed, 23 Jul 2014, Marc Glisse wrote:
> On Thu, 10 Jul 2014, Christian Weisgerber wrote:
>
>> gmp 6.0.0a configured with --disable-assembly does not build on
>> OpenBSD 5.5/sparc64 (gcc 4.2.1).
>>
>> div_qr_1n_pi1.c: In function '__gmpn_div_qr_1n_pi1':
>> div_qr_1n_pi1.c:218: error: expected ':' or ')' before '__CLOBBER_CC'
>>
>> Briefly, the problem is that mpn/generic/div_qr_1n_pi1.c defines some
>> inline assembly even with -DNO_ASM and references __CLOBBER_CC.
>> However, __CLOBBER_CC is only defined in longlong.h if NO_ASM is not
>> defined.
>
> It would make sense to me to replace
>
> #if defined (__GNUC__)
>
> with
>
> #if defined (__GNUC__) && ! defined (NO_ASM)
>
> in div_qr_1n_pi1.c and a few other files. I'll try to remember to do that
> some time if nobody complains.
Done, I hope that fixes the --disable-assembly build on sparc...
--
Marc Glisse
More information about the gmp-bugs
mailing list