Subject: bin/2104: gas/ns32k won't compile
To: None <gnats-bugs@NetBSD.ORG>
From: None <ra!leo@marco.de>
List: netbsd-bugs
Date: 02/19/1996 09:07:31
>Number:         2104
>Category:       bin
>Synopsis:       gas/ns32k won't compile
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    bin-bug-people (Utility Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Feb 21 04:50:03 1996
>Last-Modified:
>Originator:     Matthias Pfaller
>Organization:
leo@dachau.marco.de			in real life: Matthias Pfaller
marco GmbH, 85221 Dachau, Germany	tel: +49 8131 516142
>Release:        960209
>Environment:
	<machine, os, target, libraries (multiple lines)>
System: NetBSD klondike 1.1A NetBSD 1.1A (KLONDIKE) #48: Sun Feb 18 13:12:42 MET 1996 leo@klondike:/usr/src/sys/arch/pc532/compile/KLONDIKE pc532


>Description:
	gas now is compiled with -Werror. Due to this some missing casts
	are no longer tolerated.
>How-To-Repeat:
	Try to recompile gas on a NetNSD/pc532 system.
>Fix:
	Apply the following patch:
--- src/gnu/usr.bin/gas/config/atof-ns32k.c.orig	Sat Oct 14 01:14:36 1995
+++ src/gnu/usr.bin/gas/config/atof-ns32k.c	Sat Feb 10 11:42:48 1996
@@ -132,10 +132,10 @@
 make_invalid_floating_point_number (words)
      LITTLENUM_TYPE *	words;
 {
-	words[0]= ((unsigned)-1)>>1;	/* Zero the leftmost bit */
-	words[1]= -1;
-	words[2]= -1;
-	words[3]= -1;
+	words[0] = (LITTLENUM_TYPE) ((unsigned) -1) >> 1; /* Zero the leftmost bit */
+	words[1] = (LITTLENUM_TYPE) -1;
+	words[2] = (LITTLENUM_TYPE) -1;
+	words[3] = (LITTLENUM_TYPE) -1;
 }
 
 /***********************************************************************\

>Audit-Trail:
>Unformatted: