[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.
This commit is contained in:
dong jianqiang
2023-11-23 09:30:51 +08:00
committed by GitHub
parent 7cf26e0c6d
commit b14f651caf
2 changed files with 2 additions and 0 deletions

View File

@@ -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:

View File

@@ -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"