From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/6319 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: RE???[BUG][math]build musl with optimizing flags, some math functions are broken. Date: Tue, 14 Oct 2014 17:33:42 +0200 Message-ID: <20141014153342.GD4874@port70.net> References: <20141014024238.GL32028@brightrain.aerifal.cx> <20141014030325.GM32028@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1413300842 23041 80.91.229.3 (14 Oct 2014 15:34:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 14 Oct 2014 15:34:02 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-6332-gllmg-musl=m.gmane.org@lists.openwall.com Tue Oct 14 17:33:56 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1Xe46l-000575-8Q for gllmg-musl@plane.gmane.org; Tue, 14 Oct 2014 17:33:55 +0200 Original-Received: (qmail 13572 invoked by uid 550); 14 Oct 2014 15:34:50 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 13564 invoked from network); 14 Oct 2014 15:34:50 -0000 Mail-Followup-To: musl@lists.openwall.com Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Xref: news.gmane.org gmane.linux.lib.musl.general:6319 Archived-At: * bobodog <8192542@qq.com> [2014-10-14 15:09:45 +0800]: > Further confirmation, the problem is -ffast-math flag, just remove this flag, all tests passed, please fix this bug, the openbsd's msun math library, have not any problem with this flags. > how did you verify that openbsd "have not any problem with this flag" ? (without looking at your methodology i can guarantee that openbsd msun math library is completely broken with gcc -ffast-math too unless openbsd explicitly disabled this option in their compiler.. they maintain their own compiler so they can implement -ffast-math as a no-op, but a modern unpatched gcc with -ffast-math breaks all math functions which depend on exact ieee arithmetics)