]> granicus.if.org Git - clang/commit
Fix a long-standing bug where Clang had a different default from GCC on
authorChandler Carruth <chandlerc@gmail.com>
Thu, 26 Apr 2012 02:10:51 +0000 (02:10 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Thu, 26 Apr 2012 02:10:51 +0000 (02:10 +0000)
commit4f50c50e783461ea1ec47dd6fe9be10aafcd76ad
treefd13ec10fa9364e7e68ffcaccd32d56488200b63
parent86e6fdcf1a04edc4c24f53f9dbacf7e1b52f306d
Fix a long-standing bug where Clang had a different default from GCC on
Linux and other (non-Darwin) platforms and have it use -fmath-errno by
default (for better or worse).

Darwin has seen the light here and uses -fno-math-errno by default, this
patch preserves that.

If any maintainers for a non-Linux platform would also like to opt-in to
-fno-math-errno by default, I'm happy to add folks, but we're currently
getting buts and misleading comparisons with GCC due to this difference
in behavior on Linux at least.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@155607 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/Tools.cpp
test/Driver/fast-math.c