aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/TargetInfo.cpp
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2011-07-02 00:34:19 +0000
committerEli Friedman <eli.friedman@gmail.com>2011-07-02 00:34:19 +0000
commitd18eecac712bfbf63372cb78940d662ce9017840 (patch)
tree4621b8323a7fde67bfb445e894df664bcf2aa418 /lib/CodeGen/TargetInfo.cpp
parent12c738d8d7aad7f122fbbbab787a0b5b482971a0 (diff)
Make clang behave in a gcc-compatible way in the presence of multiple flags for the same x86 target feature (e.g. -mno-sse -msse). gcc uses a somewhat unintuitive algorithm here in that the enabled SSE instructions is based on the order of the *last* flag for *each* feature-level, so that "-mno-sse -msse2" only enables SSE2, but "-mno-sse -msse2 -msse" enables all SSE levels.
Issue reported on cfe-dev. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@134296 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/TargetInfo.cpp')
0 files changed, 0 insertions, 0 deletions