diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-11-19 11:06:00 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2021-11-22 13:43:22 -0300 |
commit | bc801b3a40f3a9bc8f24f1d0fdc39413874c3172 (patch) | |
tree | 51db36755fec65ea7aa958bfd2799f3136033c89 /setjmp/jmp_buf-macros.sym | |
parent | 5c3ece451d46a7d8721311609bfcb6faafacb39e (diff) | |
download | glibc-bc801b3a40f3a9bc8f24f1d0fdc39413874c3172.tar.gz glibc-bc801b3a40f3a9bc8f24f1d0fdc39413874c3172.tar.xz glibc-bc801b3a40f3a9bc8f24f1d0fdc39413874c3172.zip |
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.
Diffstat (limited to 'setjmp/jmp_buf-macros.sym')
-rw-r--r-- | setjmp/jmp_buf-macros.sym | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/setjmp/jmp_buf-macros.sym b/setjmp/jmp_buf-macros.sym new file mode 100644 index 0000000000..e43958170d --- /dev/null +++ b/setjmp/jmp_buf-macros.sym @@ -0,0 +1,11 @@ +#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) |