]> granicus.if.org Git - clang/commit
[driver] Improve the implementation of the -Ofast option.
authorChad Rosier <mcrosier@apple.com>
Wed, 24 Apr 2013 18:09:54 +0000 (18:09 +0000)
committerChad Rosier <mcrosier@apple.com>
Wed, 24 Apr 2013 18:09:54 +0000 (18:09 +0000)
commitb82e117e4af1062b9f0d1aab89abf4aa804558f1
treead3bdc95ab05fc861302f79fa849457aa15dd2df
parent0127b3f60b5bf7b8caed8426b8bd77c4a019a286
[driver] Improve the implementation of the -Ofast option.

Specifically, allow the flags that fall under this umbrella (i.e., -O3,
-ffast-math, and -fstrict-aliasing) to be overridden/disabled with the
individual -O[0|1|2|s|z]/-fno- flags.

This also fixes the handling of various floating point optimization
flags that are modified by -ffast-math (and thus -Ofast as well).
Part of rdar://13622687

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@180204 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/Tools.cpp
lib/Frontend/CompilerInvocation.cpp
test/Driver/Ofast.c [new file with mode: 0644]