Skip to content

Commit afab3c4

Browse files
committed
[Driver] Default Generic_GCC x86 to -fasynchronous-unwind-tables
to match GCC and Clang's own x86-64.
1 parent e470f92 commit afab3c4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

clang/lib/Driver/ToolChains/Gnu.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2713,6 +2713,7 @@ bool Generic_GCC::IsUnwindTablesDefault(const ArgList &Args) const {
27132713
case llvm::Triple::ppcle:
27142714
case llvm::Triple::ppc64:
27152715
case llvm::Triple::ppc64le:
2716+
case llvm::Triple::x86:
27162717
case llvm::Triple::x86_64:
27172718
return true;
27182719
default:

clang/test/Driver/clang-translation.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
// RUN: %clang -target i386-unknown-unknown -### -S -O0 -Os %s -o %t.s -fverbose-asm -funwind-tables -fvisibility=hidden 2>&1 | FileCheck -check-prefix=I386 %s
1+
// RUN: %clang -target i386-unknown-unknown -### -S -O0 -Os %s -o %t.s -fverbose-asm -fvisibility=hidden 2>&1 | FileCheck -check-prefix=I386 %s
22
// I386: "-triple" "i386-unknown-unknown"
33
// I386: "-S"
44
// I386: "-disable-free"
55
// I386: "-mrelocation-model" "static"
66
// I386: "-mframe-pointer=all"
7-
// I386: "-funwind-tables=1"
7+
// I386: "-funwind-tables=2"
88
// I386: "-Os"
99
// I386: "-fvisibility"
1010
// I386: "hidden"

0 commit comments

Comments
 (0)