glibc/setjmp/jmp_buf-macros.sym
Adhemerval Zanella bc801b3a40 setjmp: Replace jmp_buf-macros.h with jmp_buf-macros.sym
It requires less boilerplate code for newer ports.  The _Static_assert
checks from internal setjmp are moved to its own internal test since
setjmp.h is included early by multiple headers (to generate
rtld-sizes.sym).

The riscv jmp_buf-macros.h check is also redundant, it is already
done by riscv configure.ac.

Checked with a build for the affected architectures.
2021-11-22 13:43:22 -03:00

12 lines
322 B
Plaintext

#include <setjmp.h>
#include <stddef.h>
--
JMP_BUF_SIZE sizeof (jmp_buf)
JMP_BUF_ALIGN _Alignof (jmp_buf)
SIGJMP_BUF_SIZE sizeof (sigjmp_buf)
SIGJMP_BUF_ALIGN _Alignof (sigjmp_buf)
MASK_WAS_SAVED_OFFSET offsetof (struct __jmp_buf_tag, __mask_was_saved)
SAVED_MASK_OFFSET offsetof (struct __jmp_buf_tag, __saved_mask)