[PATCH] D121017: [AArch64] Fallback to DWARF when trying to emit compact unwind info with multiple CFA offset adjustments
Momchil Velikov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 23 08:34:22 PDT 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGa6d238536d95: [AArch64] Fallback to DWARF when trying to emit compact unwind info with… (authored by chill).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D121017/new/
https://reviews.llvm.org/D121017
Files:
llvm/lib/Target/AArch64/MCTargetDesc/AArch64AsmBackend.cpp
llvm/test/MC/AArch64/arm64-compact-unwind-fallback.s
Index: llvm/test/MC/AArch64/arm64-compact-unwind-fallback.s
===================================================================
--- llvm/test/MC/AArch64/arm64-compact-unwind-fallback.s
+++ llvm/test/MC/AArch64/arm64-compact-unwind-fallback.s
@@ -5,11 +5,21 @@
// CHECK: Contents of __compact_unwind section:
// CHECK: compact encoding: 0x03000000
+// CHECK: compact encoding: 0x03000000
// CHECK: .eh_frame contents:
// CHECK: DW_CFA_def_cfa: reg1 +32
-_cfi_dwarf:
+// DW_CFA_def_cfa_offset: +32
+// DW_CFA_def_cfa_offset: +64
+
+_cfi_dwarf0:
.cfi_startproc
.cfi_def_cfa x1, 32;
.cfi_endproc
+
+_cfi_dwarf1:
+ .cfi_startproc
+ .cfi_def_cfa_offset 32
+ .cfi_def_cfa_offset 64
+ .cfi_endproc
Index: llvm/lib/Target/AArch64/MCTargetDesc/AArch64AsmBackend.cpp
===================================================================
--- llvm/lib/Target/AArch64/MCTargetDesc/AArch64AsmBackend.cpp
+++ llvm/lib/Target/AArch64/MCTargetDesc/AArch64AsmBackend.cpp
@@ -621,7 +621,8 @@
break;
}
case MCCFIInstruction::OpDefCfaOffset: {
- assert(StackSize == 0 && "We already have the CFA offset!");
+ if (StackSize != 0)
+ return CU::UNWIND_ARM64_MODE_DWARF;
StackSize = std::abs(Inst.getOffset());
break;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D121017.417636.patch
Type: text/x-patch
Size: 1289 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220323/64ff23e8/attachment.bin>
More information about the llvm-commits
mailing list