svn commit: r232894 - head/contrib/llvm/tools/clang/lib/Basic

Joerg Sonnenberger joerg at britannica.bec.de
Tue Mar 13 12:17:49 UTC 2012


On Tue, Mar 13, 2012 at 04:14:25PM +1100, Bruce Evans wrote:
> clang and gcc define __FLT_EVAL_METHOD__, but get it wrong in different
> ways, so this definition is unusuable.  For example, it is always 0 for
> clang; this is correct with SSE, but without SSE, -1 is correct.  Thus
> __FLT_EVAL_METHOD__ is unusable for defining FLT_EVAL_METHOD.

Upstream version sets it correctly, the change went in either shortly
before or after 3.0 release. I.e. clang -target i386-freebsd -mno-sse uses
__FLT_EVAL_METHOD__ 2, clang -target i386-freebsd -msse uses
__FLT_EVAL_METHOD__ 0.

Joerg


More information about the svn-src-all mailing list