From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.bugs Subject: bug#37140: 27.0.50; calc gives "Wrong type argument: number-or-marker-p, inf" to many operations Date: Sat, 24 Aug 2019 19:02:37 -0400 Message-ID: References: <82A27C89-ECB1-43A3-8A7D-AF49158EA1E0@acm.org> <83pnkuivwy.fsf@gnu.org> <83o90eivq4.fsf@gnu.org> Reply-To: rms@gnu.org Content-Type: text/plain; charset=Utf-8 Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="113717"; mail-complaints-to="usenet@blaine.gmane.org" Cc: 37140@debbugs.gnu.org, huszaghmatt@gmail.com, npostavs@gmail.com To: Mattias =?UTF-8?Q?Engdeg=C3=83=C2=A5rd?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Aug 25 01:03:14 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1i1f3y-000TS4-67 for geb-bug-gnu-emacs@m.gmane.org; Sun, 25 Aug 2019 01:03:14 +0200 Original-Received: from localhost ([::1]:39786 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i1f3w-0007Qc-CY for geb-bug-gnu-emacs@m.gmane.org; Sat, 24 Aug 2019 19:03:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45411) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i1f3n-0007QW-Jf for bug-gnu-emacs@gnu.org; Sat, 24 Aug 2019 19:03:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i1f3m-0008Gg-Fh for bug-gnu-emacs@gnu.org; Sat, 24 Aug 2019 19:03:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:34539) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1i1f3m-0008GK-C0 for bug-gnu-emacs@gnu.org; Sat, 24 Aug 2019 19:03:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1i1f3m-0000FF-6r for bug-gnu-emacs@gnu.org; Sat, 24 Aug 2019 19:03:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Richard Stallman Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 24 Aug 2019 23:03:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 37140 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Original-Received: via spool by 37140-submit@debbugs.gnu.org id=B37140.1566687780933 (code B ref 37140); Sat, 24 Aug 2019 23:03:02 +0000 Original-Received: (at 37140) by debbugs.gnu.org; 24 Aug 2019 23:03:00 +0000 Original-Received: from localhost ([127.0.0.1]:43360 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i1f3j-0000Ez-Sa for submit@debbugs.gnu.org; Sat, 24 Aug 2019 19:03:00 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:36839) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1i1f3i-0000El-NT for 37140@debbugs.gnu.org; Sat, 24 Aug 2019 19:02:58 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:41052) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1i1f3d-0007xH-Ea; Sat, 24 Aug 2019 19:02:53 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1i1f3N-0006ms-Qg; Sat, 24 Aug 2019 19:02:38 -0400 In-Reply-To: (message from Mattias =?UTF-8?Q?Engdeg=C3=83=C2=A5rd?= on Sat, 24 Aug 2019 20:38:42 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:165793 Archived-At: [[[ To any NSA and FBI agents reading my email: please consider ]]] [[[ whether defending the US Constitution against all enemies, ]]] [[[ foreign or domestic, requires you to follow Snowden's example. ]]] > In other words, the route to the error was somewhat roundabout, > but it looks like there is no actual bug in Emacs nor in gcc. But > at least I didn't know that, and was enlightened by the result. Whether it is a bug in Emacs is a matter of judgment / definition. We could say, "Don't compile Emacs with -ffinite-math-only", in which case this is not a bug in Emacs. Or we could consider -ffinite-math-only legit, in which case this is a bug in Emacs. We might want to do the latter IF (1) this bug would be easy to fix and (2) there wouldn't be other problems as a result. I suspect this one problem would be easy to fix. If Emacs is supposed to handle infinite floats, then compiling with -ffinite-math-only is inescapably bad because it will make the infinite floats fail to work. In that case, maybe we should put in something to report an error for certain if Emacs is compiled with -ffinite-math-only. One way would be to run some code at startup which ought to generate an infinity. tests that it did so, and otherwise gives a clear fatal error message. -- Dr Richard Stallman President, Free Software Foundation (https://gnu.org, https://fsf.org) Internet Hall-of-Famer (https://internethalloffame.org)