From owner-freebsd-current@FreeBSD.ORG Thu Sep 13 16:42:55 2012 Return-Path: Delivered-To: current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9E9421065672 for ; Thu, 13 Sep 2012 16:42:55 +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 740408FC12 for ; Thu, 13 Sep 2012 16:42:55 +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 q8DGgrWG018054; Thu, 13 Sep 2012 09:42:53 -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 q8DGgqJu018053; Thu, 13 Sep 2012 09:42:52 -0700 (PDT) (envelope-from sgk) Date: Thu, 13 Sep 2012 09:42:52 -0700 From: Steve Kargl To: Stefan Farfeleder Message-ID: <20120913164252.GA18024@troutmask.apl.washington.edu> References: <20120911120649.GA52235@freebsd.org> <20120911132410.GA87126@troutmask.apl.washington.edu> <504F4645.4070900@FreeBSD.org> <504F4A6B.4010001@coosemans.org> <504F5101.8090906@FreeBSD.org> <505101C3.70203@freebsd.org> <20120913020833.GA8255@troutmask.apl.washington.edu> <1347550332.1110.108.camel@revolution.hippie.lan> <20120913161024.GA13846@troutmask.apl.washington.edu> <20120913162537.GE1368@mole.fafoe.narf.at> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120913162537.GE1368@mole.fafoe.narf.at> User-Agent: Mutt/1.4.2.3i Cc: Ian Lepore , Tijl Coosemans , current@FreeBSD.org, Dimitry Andric , toolchain@FreeBSD.org, Nathan Whitehorn Subject: Re: Clang as default compiler November 4th X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Sep 2012 16:42:55 -0000 On Thu, Sep 13, 2012 at 06:25:37PM +0200, Stefan Farfeleder wrote: > On Thu, Sep 13, 2012 at 09:10:24AM -0700, Steve Kargl wrote: > > clang -O2 -pipe -march=opteron -O0 -lm test-cexp.c -o test-cexp > > test-cexp.c:49:14: warning: pragma STDC FENV_ACCESS ON is not supported, ignoring pragma [-Wunknown-pragmas] > > #pragma STDC FENV_ACCESS ON > > [...] > > > So, clang does not support "#pragma STDC FENV_ACCESS ON". > > That (IMHO) is a show stopper for clang as the default compiler, > > because at least msun/src/e_sqrtl.c uses this pragma. > > Neither does gcc, AFAIK (http://gcc.gnu.org/c99status.html). It just > silently ignores the pragma. > Hmmm, indeed, you are correct. http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34678 I seems to have mis-remembered a patch that went into newer gcc. -- Steve