]> granicus.if.org Git - clang/commit
[Driver] Automatically enable -munwind-tables if -fseh-exceptions is enabled
authorMartin Storsjo <martin@martin.st>
Tue, 18 Dec 2018 08:36:10 +0000 (08:36 +0000)
committerMartin Storsjo <martin@martin.st>
Tue, 18 Dec 2018 08:36:10 +0000 (08:36 +0000)
commitda4951c2074af6b344fe24e6a56dc9e6b90502d6
treeb94b9ff27824cf73bba72da497226345d3723da4
parent7f12885bea75c6242ba20076979031f0eb15ac60
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@349452 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/ToolChains/MinGW.cpp
test/Driver/windows-exceptions.cpp