[libc-commits] [libc] [libc][setjmp][x86] implement setjmp in terms of out of line asm (PR #88157)

James Y Knight via libc-commits libc-commits at lists.llvm.org
Tue Apr 9 14:50:27 PDT 2024


jyknight wrote:

The mach-o asm-portability issues are handled in compiler-rt's assembly.h file, too:

> libc/src/setjmp/x86_64/setjmp.S:28:1: error: unknown directive
> .type setjump, @function

`SYMBOL_IS_FUNC` macro

> libc/src/setjmp/x86_64/setjmp.S:47:1: error: unknown directive
> .size setjump, . - setjump

`END_COMPILERRT_FUNCTION` macro

> also, macho-o expects a leading underscore prefix on identifiers.

`SYMBOL_NAME` macro

https://github.com/llvm/llvm-project/pull/88157


More information about the libc-commits mailing list