From owner-freebsd-alpha Fri Jul 7 19:23: 7 2000 Delivered-To: freebsd-alpha@freebsd.org Received: from eel.radicalmedia.com (eel.radicalmedia.com [204.254.246.9]) by hub.freebsd.org (Postfix) with ESMTP id BCE1037B574 for ; Fri, 7 Jul 2000 19:23:04 -0700 (PDT) (envelope-from phiber@eel.radicalmedia.com) Received: (from phiber@localhost) by eel.radicalmedia.com (8.9.3/8.9.3) id WAA23327 for freebsd-alpha@freebsd.org; Fri, 7 Jul 2000 22:22:57 -0400 (EDT) Date: Fri, 7 Jul 2000 22:22:56 -0400 From: Mark Abene To: freebsd-alpha@freebsd.org Subject: floating point troubles... Message-ID: <20000707222256.B22774@radicalmedia.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.1i Sender: owner-freebsd-alpha@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I'm trying to get Smalltalk from the ports collection working, but I'm running into a recurring problem with floating point handling, ending up with an exception and a core dump. I've reduced the problem to the following simple program: #include main() { double num, base, exponent; fp_except_t mask; mask = fpgetmask(); fpsetmask(mask & ~(FP_X_INV|FP_X_OFL)); base = 10; exponent = 1000; num = pow(base, exponent); } Unless I'm missing something, an fp exception shouldn't be happening because I have them disabled. Compiling with -mieee or -mfp-regs makes no difference, still dumps. If I do an outright fpsetmask(0) it still dumps. For what it's worth, the preceeding code runs fine on an intel box. Anyone have any clues???? -Mark To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-alpha" in the body of the message