From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Matt Wette Newsgroups: gmane.lisp.guile.devel Subject: Re: GNU Guile 2.1.5 released (beta) Date: Sun, 8 Jan 2017 15:28:15 -0800 Message-ID: References: <8760mvbjl3.fsf@pobox.com> <1933D6E2-09B2-4950-B781-91695BDF9189@gmail.com> <87o9zhb1hn.fsf@pobox.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1483918126 2841 195.159.176.226 (8 Jan 2017 23:28:46 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 8 Jan 2017 23:28:46 +0000 (UTC) Cc: guile-devel@gnu.org To: Andy Wingo Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Mon Jan 09 00:28:42 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 1cQMt0-00071d-3U for guile-devel@m.gmane.org; Mon, 09 Jan 2017 00:28:26 +0100 Original-Received: from localhost ([::1]:36141 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cQMt4-0006Yi-Fm for guile-devel@m.gmane.org; Sun, 08 Jan 2017 18:28:30 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42802) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cQMsz-0006YW-JR for guile-devel@gnu.org; Sun, 08 Jan 2017 18:28:26 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cQMsu-0003HG-To for guile-devel@gnu.org; Sun, 08 Jan 2017 18:28:25 -0500 Original-Received: from mail-pg0-x244.google.com ([2607:f8b0:400e:c05::244]:35903) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cQMsu-0003H1-Ny for guile-devel@gnu.org; Sun, 08 Jan 2017 18:28:20 -0500 Original-Received: by mail-pg0-x244.google.com with SMTP id 75so11643540pgf.3 for ; Sun, 08 Jan 2017 15:28:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=XDywBUe4S1T5xXaSs6mX+xBNk9XVB+dx32qcCPOR0hM=; b=FfNluYHoX3geXGV5TrsRJmaL/mNc+azZrCM/gk4WEJFqpbCzRMTI/yljcxi2ri9gwM itx++lvWCnYdEsTxHNQLXsg6Atd0Uqa/elaMbKZooEcK9P1L7eb+UUcH0xn6DG0Wz26+ lhX6CHInlB9LwtoBE0eKqPGX1DPBmpUmhQ90elE3nKVMQAJ8pmzyifDn17EGiHAMxk3z vKtDLtMutVI5E7tZUSL+b/1/6totOOzaPqGJxl2yhvvC77awU/ADQyUFl5SdVDEW5rIp zg3XyHV/Vkil7dACrPg6/dDpPHUBMNm84HtuDi1vcftVU1QO3Zk6nk95McXKCbyQbEKr DGTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=XDywBUe4S1T5xXaSs6mX+xBNk9XVB+dx32qcCPOR0hM=; b=OTkj5cFzIJNTTyH48FZE8MFA2wRedyzIdmsyoqmgyRm5976HkJBG/1WEzo84Sa6wzU 1bhKV3x1NuKM4bABM2/3kTHPMDEILqSZzhWTFOgqr27Ox6QqkI6zK+CP49OZzKZvcGTk XIUZsymfe9CsvJAzlSg1H1EhquND1nO4oFrTgdKD482/fT5bBZtbtqCC1h01rLv5Nrik pgJUC1zgBay7DpzQh20U2WqTDFSjmRjrCYUdAMljW6TcEbeUcJTF6o5sRvEZAuak3WX/ 9iJAEtbUQc0tdo1xRHzeBbFu09GY1IscXuiW/NkY9DReBv4+8MLBQN3DUOdByYnAlGFP Gvwg== X-Gm-Message-State: AIkVDXLxqVsh4jMU08FWEn+AM2FsOR7G/Zmz4XbGg2wmuB7T2JnBf9eGCVAt5qMC6yrtmg== X-Received: by 10.98.217.88 with SMTP id s85mr10191706pfg.167.1483918099674; Sun, 08 Jan 2017 15:28:19 -0800 (PST) Original-Received: from nautilus.championbroadband.com (216-165-246-244.championbroadband.com. [216.165.246.244]) by smtp.gmail.com with ESMTPSA id q145sm173615374pfq.22.2017.01.08.15.28.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 08 Jan 2017 15:28:18 -0800 (PST) In-Reply-To: <87o9zhb1hn.fsf@pobox.com> X-Mailer: Apple Mail (2.3259) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c05::244 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:18837 Archived-At: > On Jan 8, 2017, at 3:01 PM, Andy Wingo wrote: >=20 > On Tue 20 Dec 2016 23:58, Matt Wette writes: >=20 >> 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.=20 >>=20 >> Matt >>=20 >> --- 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 >>=20 >> SCM >> +#ifdef __APPLE__ >> +__attribute__((optimize("O0"))) >> +#endif >> scm_c_make_polar (double mag, double ang) >> { >> double s, c; >=20 > 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 :) I=E2=80=99m still not sure this is a bug. I have a gut feeling there = are some lingering issues on the Mac port. I think this breaks w/ gcc = also. I will try again to verify. Matt