Warning when compiling on NetBSD/sparc64

Martin Husemann martin at duskware.de
Sun Dec 1 09:05:43 UTC 2013

On Sat, Nov 30, 2013 at 10:52:30PM +0100, Niels Möller wrote:
> A better fix is to add CNST_LIMB for all constants passed to these
> macros, like
> 	  udiv_qr_3by2 (q, r1, r0, r1, r0, CNST_LIMB(0), d1, d0, di.inv32);
> 	                                   ^^^^^^^^^^^^
> at line 101 in divrem_2.c. As Marc said, that was apparently fixed some
> months ago in the development sources.

Ok, this is great news - it means the warning is harmless, and if it is
even fixed in your main tree, everything is fine for me.

Since I am using 5.1.3, I have CNST_LIMB and can fix it in the NetBSD
repository (where we compile everything with -Werror).

Thanks folks!


More information about the gmp-bugs mailing list