Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Sep 2012 09:42:52 -0700
From:      Steve Kargl <sgk@troutmask.apl.washington.edu>
To:        Stefan Farfeleder <stefanf@FreeBSD.org>
Cc:        Ian Lepore <freebsd@damnhippie.dyndns.org>, Tijl Coosemans <tijl@coosemans.org>, current@FreeBSD.org, Dimitry Andric <dim@FreeBSD.org>, toolchain@FreeBSD.org, Nathan Whitehorn <nwhitehorn@FreeBSD.org>
Subject:   Re: Clang as default compiler November 4th
Message-ID:  <20120913164252.GA18024@troutmask.apl.washington.edu>
In-Reply-To: <20120913162537.GE1368@mole.fafoe.narf.at>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120913164252.GA18024>