One bug that crept in somewhere:

On 2010-Mar-10 19:55:48 +0000, Marius Strobl <mar...@freebsd.org> wrote:
>Modified: head/lib/libc/sparc64/fpu/fpu.c
>@@ -181,15 +182,11 @@ __fpu_dumpfpn(struct fpn *fp)
> }
> #endif
> 
>-static int opmask[] = {0, 0, 1, 3};
>+static const int opmask[] = {0, 0, 1, 3, 1};
> 
...
>Modified: head/lib/libc/sparc64/fpu/fpu_emu.h
>==============================================================================
>--- head/lib/libc/sparc64/fpu/fpu_emu.h        Wed Mar 10 19:55:27 2010        
>(r204973)
>+++ head/lib/libc/sparc64/fpu/fpu_emu.h        Wed Mar 10 19:55:48 2010        
>(r204974)
>@@ -140,7 +140,7 @@ struct fpn {
> #define       FTYPE_SNG       INSFP_s
> #define       FTYPE_DBL       INSFP_d
> #define       FTYPE_EXT       INSFP_q
>-#define       FTYPE_LNG       -1
>+#define       FTYPE_LNG       5

FTYPE_* are used as indexes into opmask[].  Somewhere along the line,
FTYPE_LNG has changed from 4 to 5 but the opmask[] initialisers still
assume 4.  (It might be worth adding a comment into opmask[] so this
relationship is noted in future).

-- 
Peter Jeremy

Attachment: pgp8zt9xY7hcM.pgp
Description: PGP signature

Reply via email to