Port-vax archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Darned VAX NaNs...



devel/m4 on NetBSD-5/VAX:

...
 CC  isnanf.o
In file included from isnanf.c:20:
isnan.c: In function 'rpl_isnanf':
isnan.c:120: error: initializer element is not constant
isnan.c:120: error: (near initialization for 'nan.value')
isnan.c:121: error: initializer element is not constant
isnan.c:122: error: initializer element is not constant
*** Error code 1
...


It seems that the code is trying to define these things the nonportable way:

  static memory_double nan = { L_(0.0) / L_(0.0) };
  static DOUBLE plus_inf = L_(1.0) / L_(0.0);
  static DOUBLE minus_inf = -L_(1.0) / L_(0.0);

How do we fix this?

John


Home | Main Index | Thread Index | Old Index