Warning when compiling on NetBSD/sparc64

Niels Möller nisse at lysator.liu.se
Sat Nov 30 12:11:12 UTC 2013

Martin Husemann <martin at duskware.de> writes:

> when compiling gmp 5.1.3 on a NetBSD/sparc64 machine, gcc complains:
> divrem_2.c: In function '__gmpn_divrem_2':
> divrem_2.c:101:4: warning: right shift count >= width of type
> (in mpn/generic).
> I have bean unable to unriddle the macro - so I'm reporting it here.

What does the offending lines look like? Your line numbers don't match
mine. (line 101 in my divrem_2.c is an invocation of udiv_qr_3by2, which
contains no rght shift as far as I see).

Also, I'd like to see the configure command and the compilation command


Niels Möller. PGP-encrypted email is preferred. Keyid C0B98E26.
Internet email is subject to wholesale government surveillance.

More information about the gmp-bugs mailing list