The windows-msvc target is used for MSVC ABI compatibility, including
the exceptions model. It doesn't make sense to pair a windows-msvc
target with a non-MSVC exception model. This would previously cause an
assertion failure; explicitly error out for it in the frontend instead.
This also allows us to reduce the matrix of target/exception models a
bit (see the modified tests), and we can possibly simplify some of the
personality code in a follow-up.
Details
Diff Detail
- Repository
- rC Clang
- Build Status
Buildable 19018 Build 19018: arc lint + arc unit
Event Timeline
test/CodeGen/personality.c | ||
---|---|---|
10 | I'd prefer if you didn't remove these tests, but instead retarget them to use a -gnu triplet, to keep testing where you can explicitly choose between sjlj/dwarf/seh for mingw setups. | |
test/CodeGenCXX/personality.cpp | ||
9 | Same here, please keep the existing tests but retarget them to gnu/mingw. | |
test/Frontend/windows-exceptions.cpp | ||
19 | Ok, I see you're readding some sort of tests for the EH mode switching for mingw cases here, but you don't actually check that they produce the right thing here, only that it doesn't error out. So keeping the existing tests in the personality test files would probably be best. |
test/CodeGen/personality.c | ||
---|---|---|
10 | I'll re-add those back; I didnt' realize they weren't already covered. I'm gonna drop the SEH_EXCEPTIONS thing for MinGW, since AFAIK SEH __try/__finally doesn't work there. | |
test/CodeGenCXX/personality.cpp | ||
9 | This should all be covered by the group of RUN lines right below this one. |
I'd prefer if you didn't remove these tests, but instead retarget them to use a -gnu triplet, to keep testing where you can explicitly choose between sjlj/dwarf/seh for mingw setups.