The backend now can generate working unwind information for this
target.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
This needs a test. There is existing testing gap as this change does not break any clang/test/Driver test.
@@ -449,13 +449,15 @@ bool MSVCToolChain::IsUnwindTablesDefault(const ArgList &Args) const { // All non-x86_32 Windows targets require unwind tables. However, LLVM // doesn't know how to generate them for all targets, so only enable // the ones that are actually implemented. - return getArch() == llvm::Triple::x86_64 || - getArch() == llvm::Triple::aarch64; + //return getArch() == llvm::Triple::x86_64 || + // getArch() == llvm::Triple::aarch64; + return false; }
I think you may add windows-gnu RUN lines somewhere (perhaps mingw.cpp) to test both PIC and -funwind-tables= options, then remove windows-gnu RUN lines from pic.c.
(We should strive to use fewer RUN lines to achieve the same coverage.)
Comment Actions
Added testing, including testing for the existing architectures.
There was a good match for testing for this in windows-exceptions.cpp - unfortunately it ends up with 2 more RUN lines, but it fits in so well there so I'd rather not try to place it somewhere else right now.
Comment Actions
(I still think it helps to drop some RUN lines from pic.c but that change can be separate.)