glibc/htl
Sergey Bugaev 62d6c33030 mach, hurd: Cast through uintptr_t
When casting between a pointer and an integer of a different size, GCC
emits a warning (which is escalated to a build failure by -Werror).
Indeed, if what you start with is a pointer, which you then cast to a
shorter integer and then back again, you're going to cut off some bits
of the pointer.

But if you start with an integer (such as mach_port_t), then cast it to
a longer pointer (void *), and then back to a shorter integer, you are
fine. To keep GCC happy, cast through an intermediary uintptr_t, which
is always the same size as a pointer.

Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
Message-Id: <20230212111044.610942-4-bugaevc@gmail.com>
2023-02-12 15:55:04 +01:00
..
tests Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
alloca_cutoff.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
cancellation.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
configure hurd: Add hurd thread library 2018-04-02 01:44:14 +02:00
configure.in hurd: Add hurd thread library 2018-04-02 01:44:14 +02:00
cthreads-compat.c mach, hurd: Cast through uintptr_t 2023-02-12 15:55:04 +01:00
forward.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
herrno.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
htlfreeres.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
libc_pthread_init.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
libpthread_pic.a htl: Fix linking static tests by factorizing the symbols list 2020-06-10 21:34:19 +00:00
libpthread_syms.a hurd: Remove some remnants of cthreads 2020-11-15 13:16:03 +01:00
libpthread.a htl: Fix linking static tests by factorizing the symbols list 2020-06-10 21:34:19 +00:00
lockfile.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
Makefile Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
pt-alloc.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
pt-cancel.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
pt-cleanup.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
pt-create.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
pt-dealloc.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
pt-detach.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
pt-exit.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
pt-getattr.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
pt-initialize.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
pt-internal.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
pt-join.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
pt-self.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
pt-setcancelstate.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
pt-setcanceltype.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
pt-sigmask.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
pt-spin-inlines.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
pt-testcancel.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
pt-yield.c Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
semaphoreP.h Update copyright dates with scripts/update-copyrights 2023-01-06 21:14:39 +00:00
shlib-versions hurd: Add hurd thread library 2018-04-02 01:44:14 +02:00
Versions htl: Move thread table to ld.so 2021-09-16 01:04:05 +02:00