Skip broken NaN and infinity handling on VAX. May not strictly be

"correct", but VAX doesn't support NaN and infinity in its floating point,
so this is just to make m4 build on VAX.
This commit is contained in:
jklos 2010-03-25 04:39:01 +00:00
parent 7a393574c1
commit bcbc8e5217
2 changed files with 15 additions and 1 deletions

View file

@ -1,5 +1,6 @@
$NetBSD: distinfo,v 1.28 2010/02/26 15:31:42 wiz Exp $
$NetBSD: distinfo,v 1.29 2010/03/25 04:39:01 jklos Exp $
SHA1 (m4-1.4.14.tar.gz) = 8bf68b7a072d68affaccd281138ec73aca23b954
RMD160 (m4-1.4.14.tar.gz) = 80c6a4a7ac22419777fe2890f05dfaaa5c53f946
Size (m4-1.4.14.tar.gz) = 1509355 bytes
SHA1 (patch-aa) = fc7fc68865763098060ee11f0c13fc57956ec820

13
devel/m4/patches/patch-aa Normal file
View file

@ -0,0 +1,13 @@
$NetBSD: patch-aa,v 1.13 2010/03/25 04:39:01 jklos Exp $
--- lib/isnan.c.orig 2010-03-24 21:31:20.000000000 +0000
+++ lib/isnan.c
@@ -117,7 +117,7 @@ FUNC (DOUBLE x)
# else
/* Be careful to not do any floating-point operation on x, such as x == x,
because x may be a signaling NaN. */
-# if defined __SUNPRO_C || defined __DECC || (defined __sgi && !defined __GNUC__)
+# if defined __SUNPRO_C || defined __DECC || (defined __sgi && !defined __GNUC__) || defined __vax__
/* The Sun C 5.0 compilers and the Compaq (ex-DEC) 6.4 compilers don't
recognize the initializers as constant expressions. The latter compiler
also fails when constant-folding 0.0 / 0.0 even when constant-folding is