Skip to content

Commit b14f651

Browse files
[Driver] Default Generic_GCC aarch64_be to -fasynchronous-unwind-tables (#72971)
This patch defaults Generic_GCC aarch64_be to use -fasynchronous-unwind-tables and ensures consistent behavior with aarch64 little endian.
1 parent 7cf26e0 commit b14f651

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

clang/lib/Driver/ToolChains/Gnu.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2933,6 +2933,7 @@ ToolChain::UnwindTableLevel
29332933
Generic_GCC::getDefaultUnwindTableLevel(const ArgList &Args) const {
29342934
switch (getArch()) {
29352935
case llvm::Triple::aarch64:
2936+
case llvm::Triple::aarch64_be:
29362937
case llvm::Triple::ppc:
29372938
case llvm::Triple::ppcle:
29382939
case llvm::Triple::ppc64:

clang/test/Driver/aarch64-features.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
// RUN: %clang --target=aarch64-none-linux-gnu -### %s -fsyntax-only 2>&1 | FileCheck %s
2+
// RUN: %clang --target=aarch64_be-none-linux-gnu -### %s -fsyntax-only 2>&1 | FileCheck %s
23
// RUN: %clang --target=arm64-none-linux-gnu -### %s -fsyntax-only 2>&1 | FileCheck %s
34

45
// CHECK: "-funwind-tables=2"

0 commit comments

Comments
 (0)