]> git.ipfire.org Git - thirdparty/glibc.git/commit
Use PTR_MANGLE and PTR_DEMANGLE unconditionally in C sources
authorFlorian Weimer <fweimer@redhat.com>
Tue, 18 Oct 2022 15:00:07 +0000 (17:00 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 18 Oct 2022 15:04:10 +0000 (17:04 +0200)
commit58548b9d689fb9bba67bdc5b59c8d2fa47f4f8ec
tree0aea307f4cf761952fbdf15fd67fc3b09b43707c
parent88f4b6929c26f9240a4b0b7dcc62922f02544a09
Use PTR_MANGLE and PTR_DEMANGLE unconditionally in C sources

In the future, this will result in a compilation failure if the
macros are unexpectedly undefined (due to header inclusion ordering
or header inclusion missing altogether).

Assembler sources are more difficult to convert.  In many cases,
they are hand-optimized for the mangling and no-mangling variants,
which is why they are not converted.

sysdeps/s390/s390-32/__longjmp.c and sysdeps/s390/s390-64/__longjmp.c
are special: These are C sources, but most of the implementation is
in assembler, so the PTR_DEMANGLE macro has to be undefined in some
cases, to match the assembler style.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
50 files changed:
hurd/sigunwind.c
iconv/gconv.c
iconv/gconv_cache.c
iconv/gconv_db.c
iconv/gconv_dl.c
iconv/gconv_trans.c
iconv/skeleton.c
inet/idna.c
libio/iofopncook.c
libio/iofwide.c
libio/libioP.h
libio/vtables.c
misc/unwind-link.c
nss/nss_module.c
stdlib/cxa_atexit.c
stdlib/cxa_finalize.c
stdlib/cxa_thread_atexit_impl.c
stdlib/exit.c
stdlib/on_exit.c
sysdeps/aarch64/jmpbuf-offsets.h
sysdeps/alpha/jmpbuf-unwind.h
sysdeps/arc/jmpbuf-unwind.h
sysdeps/arm/jmpbuf-unwind.h
sysdeps/csky/jmpbuf-unwind.h
sysdeps/generic/unwind-link.h
sysdeps/i386/jmpbuf-unwind.h
sysdeps/i386/unwind-arch.h
sysdeps/loongarch/jmpbuf-unwind.h
sysdeps/m68k/jmpbuf-unwind.h
sysdeps/mach/hurd/jmp-unwind.c
sysdeps/microblaze/jmpbuf-unwind.h
sysdeps/mips/jmpbuf-unwind.h
sysdeps/nios2/jmpbuf-offsets.h
sysdeps/powerpc/jmpbuf-unwind.h
sysdeps/riscv/jmpbuf-unwind.h
sysdeps/s390/jmpbuf-unwind.h
sysdeps/s390/s390-32/__longjmp.c
sysdeps/s390/s390-64/__longjmp.c
sysdeps/sh/jmpbuf-unwind.h
sysdeps/sparc/sparc32/jmpbuf-unwind.h
sysdeps/x86_64/jmpbuf-unwind.h
wcsmbs/btowc.c
wcsmbs/mbrtoc16.c
wcsmbs/mbrtowc.c
wcsmbs/mbsnrtowcs.c
wcsmbs/mbsrtowcs_l.c
wcsmbs/wcrtomb.c
wcsmbs/wcsnrtombs.c
wcsmbs/wcsrtombs.c
wcsmbs/wctob.c