Clang as default compiler November 4th
Steve Kargl
sgk at troutmask.apl.washington.edu
Thu Sep 13 16:42:55 UTC 2012
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
More information about the freebsd-current
mailing list