hanchenye-llvm-project/clang/lib/Driver
Chandler Carruth 8b4140d712 Move the emission of strict enum range metadata behind a flag (the same
flag as GCC uses: -fstrict-enums). There is a *lot* of code making
unwarranted assumptions about the underlying type of enums, and it
doesn't seem entirely reasonable to eagerly break all of it.

Much more importantly, the current state of affairs is *very* good at
optimizing based upon this information, which causes failures that are
very distant from the actual enum. Before we push for enabling this by
default, I think we need to implement -fcatch-undefined-behavior support
for instrumenting and trapping whenever we store or load a value outside
of the range. That way we can track down the misbehaving code very
quickly.

I discussed this with Rafael, and currently the only important cases he
is aware of are the bool range-based optimizations which are staying
hard enabled. We've not seen any issue with those either, and they are
much more important for performance.

llvm-svn: 153550
2012-03-27 23:58:37 +00:00
..
Action.cpp Add new code migrator support for migrating existing Objective-C code to use 2012-03-06 20:06:33 +00:00
Arg.cpp Basic: import SmallString<> into clang namespace 2012-02-05 02:13:05 +00:00
ArgList.cpp [driver] Parse diagnostic args in the driver. 2012-03-13 20:09:56 +00:00
CC1AsOptions.cpp
CC1Options.cpp
CMakeLists.txt
Compilation.cpp
Driver.cpp Update FIXME. 2012-03-12 21:24:57 +00:00
DriverOptions.cpp
InputInfo.h
Job.cpp
Makefile
OptTable.cpp
Option.cpp
Phases.cpp
Tool.cpp
ToolChain.cpp Duplicated code is bad. At least make it consistent. 2012-03-21 17:19:12 +00:00
ToolChains.cpp Use VersionTuple to manage macosx versions in the driver. No functionality change. 2012-03-10 20:55:36 +00:00
ToolChains.h Use VersionTuple to manage macosx versions in the driver. No functionality change. 2012-03-10 20:55:36 +00:00
Tools.cpp Move the emission of strict enum range metadata behind a flag (the same 2012-03-27 23:58:37 +00:00
Tools.h [driver] Don't try to generate diagnostic information for linker crashes. 2012-03-07 00:30:40 +00:00
Types.cpp
WindowsToolChain.cpp [msvc] Honor %INCLUDE%. It should know essential search paths with vcvarsall.bat. 2012-03-13 00:02:21 +00:00