From owner-freebsd-toolchain@FreeBSD.ORG Tue Sep 11 17:04:25 2012 Return-Path: Delivered-To: toolchain@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F1F2B106566B; Tue, 11 Sep 2012 17:04:24 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) by mx1.freebsd.org (Postfix) with ESMTP id AA15E8FC17; Tue, 11 Sep 2012 17:04:24 +0000 (UTC) Received: from troutmask.apl.washington.edu (localhost.apl.washington.edu [127.0.0.1]) by troutmask.apl.washington.edu (8.14.5/8.14.5) with ESMTP id q8BH4CfJ096445; Tue, 11 Sep 2012 10:04:12 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.14.5/8.14.5/Submit) id q8BH4CXV096444; Tue, 11 Sep 2012 10:04:12 -0700 (PDT) (envelope-from sgk) Date: Tue, 11 Sep 2012 10:04:12 -0700 From: Steve Kargl To: Mark Felder Message-ID: <20120911170412.GA96297@troutmask.apl.washington.edu> References: <20120910211207.GC64920@lor.one-eyed-alien.net> <20120911104518.GF37286@deviant.kiev.zoral.com.ua> <20120911120649.GA52235@freebsd.org> <20120911122122.GJ37286@deviant.kiev.zoral.com.ua> <20120911123833.GA54483@freebsd.org> <848C813E-E6EC-4FAF-9374-B5583A077404@cederstrand.dk> <20120911133215.GB87126@troutmask.apl.washington.edu> <504F4650.9090700@protected-networks.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: Christer Solskogen , toolchain@freebsd.org, Michael Butler , current@freebsd.org Subject: Re: Clang as default compiler November 4th X-BeenThere: freebsd-toolchain@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Maintenance of FreeBSD's integrated toolchain List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Sep 2012 17:04:25 -0000 On Tue, Sep 11, 2012 at 11:42:53AM -0500, Mark Felder wrote: > On Tue, 11 Sep 2012 09:10:24 -0500, Michael Butler > wrote: > > >- From the link (http://math-atlas.sourceforge.net/errata.html#WhatComp) > >that Steve Kargl referenced (dated July 2012). > > > I don't know where this guy is getting his info, but CLANG is /more/ > standards compliant and doesn't have an issue producing "correct" code. > Though it might not be the fastest (yet). > > And if Apple (probably one of the largest commercial CLANG users) doesn't > have an issue with it producing "incorrect" code why should we believe > this guy? Who does 'this guy' refer to? If it is me, then I get my information from the developer of ATLAS. The issue isn't conformance to a standard. The issue is whether clang generates correct code when floating point is concerned. From the ATLAS installation guide date 10 Jul 2012: In most cases, switching these compilers will get you worse performance and accuracy, even when you are absolutely sure it is a better compiler and flag combination! In particular, our timings indicated that clang was always slower on all platforms that gcc, and that it very often produced incorrect code. If 'this guy' refers to the author of ATLAS, then 'this guy' is R. Clint Whaley. It is fairly easy to find his home page and thus his credentials. -- Steve