Subject: IEEE math on Alpha
To: None <port-alpha@netbsd.org>
From: Thomas T. Thai <tom@minnesota.com>
List: port-alpha
Date: 12/31/2000 20:49:00
  This message is in MIME format.  The first part should be readable text,
  while the remaining parts are likely unreadable without MIME-aware tools.
  Send mail to mime@docserver.cac.washington.edu for more info.

--4294967296-672817663-978317340=:28945
Content-Type: TEXT/PLAIN; charset=US-ASCII

again i'm working to get PostgreSQL to pass on all regression tests on the
Alpha. however, i'm running into this problem with NetBSD failing on 'inf'
and 'nan' with SIGFPE (kernel reports user traps). if compiled with -mieee
the attached code will cause the user trap.

i've taken the -mieee flag out of the Makefile in pgsql, and
recompiled, but the program keeps dumping user trap errors and it's
always something related to NAN. any suggestion is appreciated.


--4294967296-672817663-978317340=:28945
Content-Type: TEXT/PLAIN; charset=US-ASCII; name="nan.c"
Content-Transfer-Encoding: BASE64
Content-ID: <Pine.NEB.4.21.0012312049001.28945@ns01.minnesota.com>
Content-Description: 
Content-Disposition: attachment; filename="nan.c"

LyogdG9tQG1pbm5lc290YS5jb20gLS0gb24gTmV0QlNEL0FscGhhIDEuNS4x
X0FMUEhBIHRoaXMgd2lsbCBwcm9kdWNlIGEgdXNlciANCnRyYXAgYnkgdGhl
IGtlcm5lbCBpZiBjb21waWxlZCB3aXRoICctbWllZWUnLiBVc2UgJy1nJyBm
bGFnIHRvIGRlYnVnLiAqLyANCg0KI2luY2x1ZGUgPHNpZ25hbC5oPg0KI2lu
Y2x1ZGUgPG1hdGguaD4NCiNpbmNsdWRlIDxzdGRpby5oPg0KDQp0eXBlZGVm
IHZvaWQgKCpwcXNpZ2Z1bmMpIChpbnQpOw0KDQpzdGF0aWMgdm9pZA0KRmxv
YXRFeGNlcHRpb25IYW5kbGVyKGludCBzaWcpDQp7DQogICAgICAgIGZwcmlu
dGYoc3RkZXJyLCAiU2lnbmFsICVkIG9jY3VycmVkXG4iLCBzaWcpOw0KfQ0K
DQpwcXNpZ2Z1bmMNCnBxc2lnbmFsKGludCBzaWdubywgcHFz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