Subject: bin/2280: /usr/bin/as fails to recognice 0fInf
To: None <gnats-bugs@NetBSD.ORG>
From: None <leo@marco.de>
List: netbsd-bugs
Date: 04/01/1996 10:58:00
>Number: 2280
>Category: bin
>Synopsis: /usr/bin/as fails to recognice 0fInf
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: bin-bug-people (Utility Bug People)
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Apr 1 04:20:04 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: 960328
>Environment:
System: NetBSD klondike 1.1B NetBSD 1.1B (KLONDIKE) #99: Sat Mar 30 00:49:14 MET 1996 leo@klondike:/usr/src/sys/arch/pc532/compile/KLONDIKE pc532
>Description:
On architectures with local labels enabled (e.g. ns32k) gas fails to
recognice floatingpoint constants in the form 0fInf and 0fNaN.
On the pc532 this prevents the compilation of libm.
>How-To-Repeat:
$ echo ".double 0fInf" >/tmp/tst.s
$ as /tmp/tst.s
>Fix:
--- gnu/usr.bin/gas/expr.c.ORIG Sat Oct 14 01:14:09 1995
+++ gnu/usr.bin/gas/expr.c Sat Mar 30 16:51:07 1996
@@ -126,7 +126,7 @@
/* likewise for the b's. xoxorich. */
if ((c == 'f' || c == 'b' || c == 'B')
&& (!*input_line_pointer ||
- (!strchr("+-.0123456789",*input_line_pointer) &&
+ (!strchr("+-.0123456789iInN",*input_line_pointer) &&
!strchr(EXP_CHARS,*input_line_pointer)))) {
maxdig = radix = 10;
too_many_digits = 11;
>Audit-Trail:
>Unformatted: