Skip to content

Commit

Permalink
[Driver] Default Generic_GCC aarch64_be to -fasynchronous-unwind-tabl…
Browse files Browse the repository at this point in the history
…es (#72971)

This patch defaults Generic_GCC aarch64_be to use
-fasynchronous-unwind-tables and ensures consistent behavior with
aarch64 little endian.
  • Loading branch information
dongjianqiang2 committed Nov 23, 2023
1 parent 7cf26e0 commit b14f651
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions clang/lib/Driver/ToolChains/Gnu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2933,6 +2933,7 @@ ToolChain::UnwindTableLevel
Generic_GCC::getDefaultUnwindTableLevel(const ArgList &Args) const {
switch (getArch()) {
case llvm::Triple::aarch64:
case llvm::Triple::aarch64_be:
case llvm::Triple::ppc:
case llvm::Triple::ppcle:
case llvm::Triple::ppc64:
Expand Down
1 change: 1 addition & 0 deletions clang/test/Driver/aarch64-features.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// RUN: %clang --target=aarch64-none-linux-gnu -### %s -fsyntax-only 2>&1 | FileCheck %s
// RUN: %clang --target=aarch64_be-none-linux-gnu -### %s -fsyntax-only 2>&1 | FileCheck %s
// RUN: %clang --target=arm64-none-linux-gnu -### %s -fsyntax-only 2>&1 | FileCheck %s

// CHECK: "-funwind-tables=2"
Expand Down

0 comments on commit b14f651

Please sign in to comment.