[PATCH] D122258: [MC] Omit DWARF unwind info if compact unwind is present where eligible

Nico Weber via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 14 06:17:05 PDT 2022


thakis added a comment.

In D122258#3478727 <https://reviews.llvm.org/D122258#3478727>, @davide wrote:

> Compact unwind was developed as a goal to replace the DWARF unwind. Some apps did not work if the OS was missing DWARF unwind, so we kept both for Intel. The binary compatibility issue is non-existent on arm64, but it could be still a thing on x86_64. 
> If a function cannot be encoded in CU, we need the compiler to emit both (where the CU is a magic value that points to the dwarf unwind info for that function).
>
> tl;dr: this is "a nice cleanup", and potentially the bincompat issue might be gone, but the cost of breaking programs in the wild is IMHO too high.

Do you think clang could enable it by default even on intel if the deployment target is "new enough"?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D122258/new/

https://reviews.llvm.org/D122258



More information about the cfe-commits mailing list