From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: (elisp)Numbers Date: Wed, 22 Oct 2003 05:25:37 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <200310210229.h9L2TGl12085@raven.dms.auburn.edu> Reply-To: rms@gnu.org NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1066815276 26595 80.91.224.253 (22 Oct 2003 09:34:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 22 Oct 2003 09:34:36 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Wed Oct 22 11:34:32 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1ACFNv-0001tn-00 for ; Wed, 22 Oct 2003 11:34:31 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1ACFNv-0003yC-01 for ; Wed, 22 Oct 2003 11:34:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ACFMI-0004PY-QI for emacs-devel@quimby.gnus.org; Wed, 22 Oct 2003 05:32:50 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.24) id 1ACFJs-0003HG-Bt for emacs-devel@gnu.org; Wed, 22 Oct 2003 05:30:20 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.24) id 1ACFJW-000305-Di for emacs-devel@gnu.org; Wed, 22 Oct 2003 05:30:17 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1ACFJV-0002zO-CS for emacs-devel@gnu.org; Wed, 22 Oct 2003 05:29:57 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.24) id 1ACFFJ-0004gJ-6Y; Wed, 22 Oct 2003 05:25:37 -0400 Original-To: Luc Teirlinck In-reply-to: <200310210229.h9L2TGl12085@raven.dms.auburn.edu> (message from Luc Teirlinck on Mon, 20 Oct 2003 21:29:16 -0500 (CDT)) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:17322 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:17322 2. In (elisp)Math Functions, it is said that asin, acos, log, log10 and sqrt all return NaN values for out-of-range arguments, but, on my machine, only `sqrt' does. The others throw an error, see the IELM run below. I get the same results. I figured out why. I'm using an x86. Facos calls acos, but in Fsqrt the call to sqrt gets open-coded using the fsqrt instruction. fsqrt doesn't set errno as it is expected to. Perhaps that is a GCC bug. I have GCC 2.95.4, which is rather old. Can anyone else try this with the latest GCC, so we can see if the bug still exists?