diff options
author | Dmitry Chestnykh <dm.chestnykh@gmail.com> | 2024-05-17 12:28:07 +0300 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2024-05-18 04:55:11 +0200 |
commit | 573cb24a31289b7610d207e5147cdd158000bd20 (patch) | |
tree | f3ac0bcc04a070d659feb8ef66536f2411e89be9 | |
parent | 74d159ff1283d0e29f02377c351c9cf71e8f5d33 (diff) |
Fix uClibc build for nds32 with gcc-14.
Signed-off-by: Dmitry Chestnykh <dm.chestnykh@gmail.com>
-rw-r--r-- | libc/sysdeps/linux/nds32/jmpbuf-unwind.h | 2 | ||||
-rw-r--r-- | libpthread/nptl/sysdeps/nds32/dl-tls.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libc/sysdeps/linux/nds32/jmpbuf-unwind.h b/libc/sysdeps/linux/nds32/jmpbuf-unwind.h index 8499e99b4..5b85f4d23 100644 --- a/libc/sysdeps/linux/nds32/jmpbuf-unwind.h +++ b/libc/sysdeps/linux/nds32/jmpbuf-unwind.h @@ -20,7 +20,7 @@ static inline uintptr_t __attribute__ ((unused)) _jmpbuf_sp (__jmp_buf regs) { - uintptr_t sp = &(regs)[0].__regs[__JMP_BUF_SP]; + uintptr_t sp = (uintptr_t) &(regs)[0].__regs[__JMP_BUF_SP]; return sp; } diff --git a/libpthread/nptl/sysdeps/nds32/dl-tls.h b/libpthread/nptl/sysdeps/nds32/dl-tls.h index 3b11e7f42..f0107cacb 100644 --- a/libpthread/nptl/sysdeps/nds32/dl-tls.h +++ b/libpthread/nptl/sysdeps/nds32/dl-tls.h @@ -50,7 +50,7 @@ struct tlsdesc_dynamic_arg extern void *__tls_get_addr (tls_index *ti); extern ptrdiff_t attribute_hidden - _dl_tlsdesc_return(struct tlsdesc_dynamic_arg *); + _dl_tlsdesc_return(struct tlsdesc *); extern void *_dl_make_tlsdesc_dynamic (struct link_map *map, size_t ti_offset); extern ptrdiff_t attribute_hidden |