]> granicus.if.org Git - clang/commit
[Driver] Disable uwtable by default in -ffreestanding mode
authorVedant Kumar <vsk@apple.com>
Tue, 12 Sep 2017 22:51:53 +0000 (22:51 +0000)
committerVedant Kumar <vsk@apple.com>
Tue, 12 Sep 2017 22:51:53 +0000 (22:51 +0000)
commitd8106a437c01798c56350263c212097e70c01ff1
tree047b20c3d23a7599959692a24dc1e46cf07d532f
parent516c46b709dc89bd39eb83e938e281bdf60bea23
[Driver] Disable uwtable by default in -ffreestanding mode

We make the same decision when compiling the kernel or kexts -- we
should do this in -ffreestanding mode as well to avoid size regressions
in a potentially large set of firmware projects.

It's still possible to get uwtable information in -ffreestanding mode by
compiling with -funwind-tables (I expect this to be a rare case: I
certainly haven't seen any projects like that).

Context: -munwind-tables was enabled by default for some arm targets in
r310006.

Testing: check-clang

rdar://problem/33934446

Differential Revision: https://reviews.llvm.org/D37777

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@313087 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/ToolChains/Clang.cpp
test/Driver/clang-translation.c