From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Andy Wingo Newsgroups: gmane.lisp.guile.devel Subject: Re: GNU Guile 2.1.5 released (beta) Date: Mon, 09 Jan 2017 00:01:08 +0100 Message-ID: <87o9zhb1hn.fsf@pobox.com> References: <8760mvbjl3.fsf@pobox.com> <1933D6E2-09B2-4950-B781-91695BDF9189@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1483916497 12102 195.159.176.226 (8 Jan 2017 23:01:37 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 8 Jan 2017 23:01:37 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) Cc: guile-devel@gnu.org To: Matt Wette Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Jan 09 00:01:33 2017 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cQMSo-0001XZ-Qj for guile-devel@m.gmane.org; Mon, 09 Jan 2017 00:01:22 +0100 Original-Received: from localhost ([::1]:35613 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cQMSt-0008Gh-7A for guile-devel@m.gmane.org; Sun, 08 Jan 2017 18:01:27 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60643) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cQMSn-0008GI-G9 for guile-devel@gnu.org; Sun, 08 Jan 2017 18:01:22 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cQMSk-0007lF-FV for guile-devel@gnu.org; Sun, 08 Jan 2017 18:01:21 -0500 Original-Received: from pb-sasl1.pobox.com ([64.147.108.66]:61961 helo=sasl.smtp.pobox.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cQMSk-0007kw-9e for guile-devel@gnu.org; Sun, 08 Jan 2017 18:01:18 -0500 Original-Received: from sasl.smtp.pobox.com (unknown [127.0.0.1]) by pb-sasl1.pobox.com (Postfix) with ESMTP id 7221C5544E; Sun, 8 Jan 2017 18:01:16 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; s=sasl; bh=PNllM72ZRg8J48n3ok1A4A7g0RA=; b=XIcVP7 ZEu+99hW37A9/q1nyiR+B/HGL4xg0uGQutXGsODUUPKJhNKu+wqO3bHvywkNnV2Q hqgEY+Q1lXEVPAEwh5j2S3zRvOXRFWwpX7sPub5EqXMMd6o256Dkuo6dtVrzrsAr ttoZ9G62R7QIPuFfF6h6eN6HNtpskhc7zjMyA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=from:to:cc :subject:references:date:in-reply-to:message-id:mime-version :content-type; q=dns; s=sasl; b=L4qHa2AU0sardt4LprRBk8p//NuOc3Jt 33p95q6Y7936cJomBZeUzdgq8+ZEdg11XZhSKRfh17B31pvLU04GDx3GHlAgjpz0 5Jwx9GA3kO3Ow2gBgH9X/kGeEceexvt12QLSr98P7up8x/EfuxkOf+8OR4Yv4qtl 3qAEJpo/DnI= Original-Received: from pb-sasl1.nyi.icgroup.com (unknown [127.0.0.1]) by pb-sasl1.pobox.com (Postfix) with ESMTP id 671E05544D; Sun, 8 Jan 2017 18:01:16 -0500 (EST) Original-Received: from clucks (unknown [88.160.190.192]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pb-sasl1.pobox.com (Postfix) with ESMTPSA id 754D05544C; Sun, 8 Jan 2017 18:01:15 -0500 (EST) In-Reply-To: <1933D6E2-09B2-4950-B781-91695BDF9189@gmail.com> (Matt Wette's message of "Tue, 20 Dec 2016 14:58:27 -0800") X-Pobox-Relay-ID: 5BA5E6D6-D5F6-11E6-A301-CDEC6462E9F6-02397024!pb-sasl1.pobox.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 64.147.108.66 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: "guile-devel" Xref: news.gmane.org gmane.lisp.guile.devel:18834 Archived-At: On Tue 20 Dec 2016 23:58, Matt Wette writes: > With the patch below I can get through all the tests on my Mac (macOS 10.12.2) if I use default flags (i.e., -g -O2) and gcc-4.9 (now verifying also w/ gcc-6.2). The patch is a hack to > get around an apparent optimization that thinks the sine of -0.0 is +0.0. > > Matt > > --- libguile/numbers.c-orig 2016-11-21 13:56:23.000000000 -0800 > +++ libguile/numbers.c 2016-12-20 14:43:58.000000000 -0800 > @@ -9099,6 +9099,9 @@ > #undef FUNC_NAME > > SCM > +#ifdef __APPLE__ > +__attribute__((optimize("O0"))) > +#endif > scm_c_make_polar (double mag, double ang) > { > double s, c; Aaah, thank you for tracking this one down! So. I assume that with GCC (any version) everything is fine. This is apparently an optimization in LLVM. But... is LLVM wrong, or are we wrong? I guess LLVM is wrong, right, since the result depends on the optimization level? Surely we should be able to produce a nice compiler bug report out of this :) Andy