mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 04:50:07 +00:00
bc801b3a40
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.
12 lines
322 B
Plaintext
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)
|