]> granicus.if.org Git - clang/commit
Add -ffp-contract = { fast | on | off } command line option support.
authorLang Hames <lhames@gmail.com>
Fri, 6 Jul 2012 00:59:19 +0000 (00:59 +0000)
committerLang Hames <lhames@gmail.com>
Fri, 6 Jul 2012 00:59:19 +0000 (00:59 +0000)
commitc9686716d2ceb5518178dca98670ec34c472a1be
treeb4201afe672b4090ac1699d9190a28341428fa59
parent36cbfbfce889642057bd007eac3569ea9f58e1e8
Add -ffp-contract = { fast | on | off }   command line option support.

This flag sets the 'fp-contract' mode, which controls the formation of fused
floating point operations. Available modes are:

- Fast: Form fused operations anywhere.
- On: Form fused operations where allowed by FP_CONTRACT. This is the default
      mode.
- Off: Don't form fused operations (in future this may be relaxed to forming
       fused operations where it can be proved that the result won't be
       affected).

Currently clang doesn't support the FP_CONTRACT pragma, so the 'On' and 'Off'
modes are equivalent.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@159794 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/LangOptions.def
include/clang/Basic/LangOptions.h
include/clang/Driver/Options.td
lib/CodeGen/BackendUtil.cpp
lib/Driver/Tools.cpp
lib/Frontend/CompilerInvocation.cpp
test/CodeGen/fp-contract.c [new file with mode: 0644]
test/Driver/clang_f_opts.c