Warning when compiling on NetBSD/sparc64

Marc Glisse marc.glisse at inria.fr
Sat Nov 30 21:21:08 UTC 2013


On Sat, 30 Nov 2013, Niels Möller wrote:

> Marc Glisse <marc.glisse at inria.fr> writes:
>
>> udiv_qr_3by2 uses add_ssaaaa which has some ">> 32" on sparc64.
>
> So it must be that shift, then (or sub_ddmmss).
>
> But I have difficulty spotting any 32-bit values. All involved variables
> seems to be typed as mp_limb_t, and CNST_LIMB(0) includes an explicit
> cast to mp_limb_t. And configure says that mp_limb_t is 8 bytes, as it
> should be for a 64-bit build.
>
> It seems CNST_LIMB is important, since in divrem_2.c there are two
> almost identical invocations on udiv_qr_3by2, and the compiler complains
> only on the second one. Which differs only in CNST_LIMB(0) passed
> instead of n0.

The CNST_LIMB is recent, 5.1.2 didn't have it, Torbjorn fixed it in May on 
the main branch.

-- 
Marc Glisse


More information about the gmp-bugs mailing list