[PATCH] clang-cl: Map /EHs- to -fno-exceptions
Reid Kleckner
rnk at google.com
Thu Jun 26 15:25:25 PDT 2014
Hi hans,
This isn't 100% compatible with MSVC, but it's close enough. MSVC's /EH
flag doesn't really control exceptions so much as how to clean up after
an exception is thrown. The upshot is that cl.exe /EHs- will compile
try, throw, and catch statements with a warning, but clang-cl will
reject such constructs with a hard error. We can't compile such EH
constructs anyway, but this may matter to consumers of the AST.
http://reviews.llvm.org/D4317
Files:
include/clang/Driver/CLCompatOptions.td
lib/Driver/Tools.cpp
test/Driver/cl-eh.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4317.10906.patch
Type: text/x-patch
Size: 4768 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20140626/f33834a5/attachment.bin>
More information about the cfe-commits
mailing list