llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
26.97k stars 11.05k forks source link

[Clang] Use __cxa_call_terminate #96610

Open philnik777 opened 2 weeks ago

philnik777 commented 2 weeks ago

GCC 14 added a new function to the family of exception functions called __cxa_call_terminate. This function is equivalent to Clang's __clang_call_terminate, but it's provided by the ABI implementation instead. I don't know whether it's worth it to change the code gen to use this new function, but I thought I'd at least inform you that it exists now.

llvmbot commented 2 weeks ago

@llvm/issue-subscribers-clang-codegen

Author: Nikolas Klauser (philnik777)

GCC 14 added a new function to the family of exception functions called `__cxa_call_terminate`. This function is equivalent to Clang's `__clang_call_terminate`, but it's provided by the ABI implementation instead. I don't know whether it's worth it to change the code gen to use this new function, but I thought I'd at least inform you that it exists now.