summaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGExpr.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2014-03-25 18:02:07 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2014-03-25 18:02:07 +0000
commitd53585be8fab3180a82b9bc7f4c40a5162e08eeb (patch)
treee5cff26cc41132d699b116776f9f9232579bd261 /lib/CodeGen/CGExpr.cpp
parentb5893c8b7b46be793d9f6fd9a1217bf9355373ed (diff)
downloadclang-d53585be8fab3180a82b9bc7f4c40a5162e08eeb.tar.gz
clang-d53585be8fab3180a82b9bc7f4c40a5162e08eeb.tar.bz2
clang-d53585be8fab3180a82b9bc7f4c40a5162e08eeb.tar.xz
Fix an logic error in the clang driver preventing crtfastmath.o from linking when -Ofast is used without -ffast-math
In gcc using -Ofast forces linking of crtfastmath.o. In the current clang crtfastmath.o is only linked when -ffast-math/-funsafe-math-optimizations passed. It can lead to performance issues, when using only -Ofast without explicit -ffast-math (I faced with it). My patch fixes inconsistency with gcc behaviour and also introduces few tests on it. Patch by Zinovy Nis! Differential Revision: http://llvm-reviews.chandlerc.com/D3114 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@204742 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
0 files changed, 0 insertions, 0 deletions