summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/windows-exceptions.cpp
diff options
context:
space:
mode:
authorMartin Storsjo <martin@martin.st>2018-12-18 08:36:10 +0000
committerMartin Storsjo <martin@martin.st>2018-12-18 08:36:10 +0000
commit56f9c81c6002852b2eff339c46bb251b3a506acc (patch)
tree4255d2875476acd5c196b778465c85b04b2d6aad /clang/test/Driver/windows-exceptions.cpp
parent8f0cb9c3a83be57e8c485e03e21dafa43f795d45 (diff)
downloadbcm5719-llvm-56f9c81c6002852b2eff339c46bb251b3a506acc.tar.gz
bcm5719-llvm-56f9c81c6002852b2eff339c46bb251b3a506acc.zip
[Driver] Automatically enable -munwind-tables if -fseh-exceptions is enabled
For targets where SEH exceptions are used by default (on MinGW, only x86_64 so far), -munwind-tables are added automatically. If -fseh-exeptions is enabled on a target where SEH exeptions are availble but not enabled by default yet (aarch64), we need to pass -munwind-tables if -fseh-exceptions was specified. Differential Revision: https://reviews.llvm.org/D55749 llvm-svn: 349452
Diffstat (limited to 'clang/test/Driver/windows-exceptions.cpp')
-rw-r--r--clang/test/Driver/windows-exceptions.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/Driver/windows-exceptions.cpp b/clang/test/Driver/windows-exceptions.cpp
index 8bce3b8dd82..2eefe22bcdb 100644
--- a/clang/test/Driver/windows-exceptions.cpp
+++ b/clang/test/Driver/windows-exceptions.cpp
@@ -2,8 +2,11 @@
// RUN: %clang -target x86_64-windows-msvc -c %s -### 2>&1 | FileCheck -check-prefix=MSVC %s
// RUN: %clang -target i686-windows-gnu -c %s -### 2>&1 | FileCheck -check-prefix=MINGW-DWARF %s
// RUN: %clang -target x86_64-windows-gnu -c %s -### 2>&1 | FileCheck -check-prefix=MINGW-SEH %s
+// RUN: %clang -target aarch64-windows-gnu -c %s -### 2>&1 | FileCheck -check-prefix=MINGW-DWARF %s
+// RUN: %clang -target aarch64-windows-gnu -fseh-exceptions -c %s -### 2>&1 | FileCheck -check-prefix=MINGW-SEH %s
MSVC-NOT: -fdwarf-exceptions
MSVC-NOT: -fseh-exceptions
MINGW-DWARF: -fdwarf-exceptions
+MINGW-SEH: -munwind-tables
MINGW-SEH: -fseh-exceptions
OpenPOWER on IntegriCloud