]> granicus.if.org Git - clang/commit
Define __FINITE_MATH_ONLY__ based on -ffast-math and -ffinite-math-only.
authorBob Wilson <bob.wilson@apple.com>
Thu, 19 Jul 2012 03:52:53 +0000 (03:52 +0000)
committerBob Wilson <bob.wilson@apple.com>
Thu, 19 Jul 2012 03:52:53 +0000 (03:52 +0000)
commit455e72e7625a8f87c2c302d8d82baee5c111e094
tree597a36c3c1247cc52988afda5d8445a9b8c34b60
parentf81678707e936cf04a2a9f7c21d51a77ffc1f6c9
Define __FINITE_MATH_ONLY__ based on -ffast-math and -ffinite-math-only.

This macro was being unconditionally set to zero, preceded by a FIXME comment.
This fixes <rdar://problem/11845441>.  Patch by Michael Gottesman!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160491 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/LangOptions.def
include/clang/Driver/Options.td
lib/Driver/Tools.cpp
lib/Frontend/CompilerInvocation.cpp
lib/Frontend/InitPreprocessor.cpp
test/Preprocessor/predefined-macros.c