From owner-freebsd-stable Sat Apr 8 17: 1:47 2000 Delivered-To: freebsd-stable@freebsd.org Received: from rr.com (rdu25-22-143.nc.rr.com [24.25.22.143]) by hub.freebsd.org (Postfix) with ESMTP id D9B4E37B572 for ; Sat, 8 Apr 2000 17:01:41 -0700 (PDT) (envelope-from rhh@rr.com) Received: (from rhh@localhost) by stealth.dummynet. (8.9.3/8.9.3) id TAA03714 for stable@freebsd.org; Sat, 8 Apr 2000 19:30:54 -0400 (EDT) (envelope-from rhh) Date: Sat, 8 Apr 2000 19:30:53 -0400 From: Randall Hopper To: stable@freebsd.org Subject: float-to-double core dump on 3.4R Message-ID: <20000408193053.A3689@ipass.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG #include main() { float f = FLT_MAX; double d; f = f * 2; d = f; } Delete the "d=f" line and it doesn't core. Put it in and it does (floating-point exception). From this it appears there may be a bug in the float-to-double promotion when f is Inf (or, at least I'd expect that f is Inf). Any comments? If not, I'll file the PR. Thanks, Randall Hopper To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message