From owner-freebsd-current@FreeBSD.ORG Tue Apr 3 18:31:49 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A2F9F1065675 for ; Tue, 3 Apr 2012 18:31:49 +0000 (UTC) (envelope-from matthias.andree@gmx.de) Received: from mailout-de.gmx.net (mailout-de.gmx.net [213.165.64.23]) by mx1.freebsd.org (Postfix) with SMTP id EA3548FC16 for ; Tue, 3 Apr 2012 18:31:48 +0000 (UTC) Received: (qmail invoked by alias); 03 Apr 2012 18:31:47 -0000 Received: from g227119120.adsl.alicedsl.de (EHLO mandree.no-ip.org) [92.227.119.120] by mail.gmx.net (mp029) with SMTP; 03 Apr 2012 20:31:47 +0200 X-Authenticated: #428038 X-Provags-ID: V01U2FsdGVkX1/2vPQ0TtP2II8dZYh8SwymfM7mgD7DCAX5hmYY5z gMItpTsweP36v2 Received: from [127.0.0.1] (localhost.localdomain [127.0.0.1]) by apollo.emma.line.org (Postfix) with ESMTP id CF62C23D257; Tue, 3 Apr 2012 20:31:46 +0200 (CEST) Message-ID: <4F7B4212.6090109@gmx.de> Date: Tue, 03 Apr 2012 20:31:46 +0200 From: Matthias Andree User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.28) Gecko/20120313 Mnenhy/0.8.3 Thunderbird/3.1.20 MIME-Version: 1.0 To: Andrey Simonenko References: <20120403112111.GA39616@pm513-1.comsys.ntu-kpi.kiev.ua> In-Reply-To: <20120403112111.GA39616@pm513-1.comsys.ntu-kpi.kiev.ua> X-Enigmail-Version: 1.1.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 Cc: freebsd-current@freebsd.org Subject: Re: -ffast-math in Ports and wrong generated code X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: FreeBSD Ports Mailing List List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Apr 2012 18:31:49 -0000 Am 03.04.2012 13:21, schrieb Andrey Simonenko: > Hello, > > I use one port from the Ports Collection, that works with FP. Having > reinstalled it (its version was not changed) I noticed that it started > to work incorrectly. After debugging and disassembling its code I found > out that the -ffast-math option used for building was the result of > wrongly generated code (I did not specify this option in /etc/make.conf). > > At least finite() function call was eliminated from the result Assembler > code when -ffast-math option is used, tested on 9.0-STABLE and 10.0-CURRENT. > > Example test source code and generated code under 9.0-STABLE on amd64 > by gcc from the base system: - Which port is affected? - Any idea whence the -ffast-math option came on your system? /etc/src.conf? Port's "make config"?