glibc/sysdeps
Adhemerval Zanella 04a99db8c7 nptl: x86_64: Use same code for CURRENT_STACK_FRAME and stackinfo_get_sp
Cherry-picked by scw@google.com from 8cd559cf5a
with local modifications (different file path and not use macros introduced in
01bd62517c). This fixes UB and code
removal when building with clang.

It avoids the possible warning of uninitialized 'frame' variable when
building with clang:

  ../sysdeps/nptl/jmp-unwind.c:27:42: error: variable 'frame' is
  uninitialized when used here [-Werror,-Wuninitialized]
    __pthread_cleanup_upto (env->__jmpbuf, CURRENT_STACK_FRAME);

The resulting code is similar to CURRENT_STACK_FRAME.

Checked on x86_64-linux-gnu.
2024-11-18 12:50:33 -08:00
..
aarch64 aarch64: Make elf_machine_{load_address,dynamic} robust [BZ #28203] 2021-08-27 17:26:09 -07:00
alpha
arm
generic Expose __isinff128 for clang 2023-12-29 00:19:59 +00:00
gnu Additional fixes for llvm-as 2021-08-27 17:26:04 -07:00
hppa
i386
ia64
ieee754 -DWANT_FLOAT usage and enable float128 tests 2023-12-27 22:22:08 +00:00
init_array
m68k
mach Fix -Os gnu_dev_* linknamespace, localplt issues (bug 15105, bug 19463). 2021-11-15 14:31:46 -08:00
microblaze
mips
nios2
nptl Optimize pthread_cond_timedwait to avoid unnecessary call to clock_gettime for CLOCK_MONOTONIC 2024-01-12 23:20:06 +00:00
posix getaddrinfo: Fix leak with AI_ALL [BZ #28852] 2024-02-02 00:46:11 +00:00
powerpc elf: Drop elf/tls-macros.h in favor of __thread and tls_model attributes [BZ #28152] [BZ #28205] 2021-08-27 17:26:09 -07:00
pthread
riscv
s390
sh
sparc Optimize pthread_cond_timedwait to avoid unnecessary call to clock_gettime for CLOCK_MONOTONIC 2024-01-12 23:20:06 +00:00
tile
unix Optimize pthread_cond_timedwait to avoid unnecessary call to clock_gettime for CLOCK_MONOTONIC 2024-01-12 23:20:06 +00:00
wordsize-32
wordsize-64
x86 Replace math-barriers with math_private 2023-12-29 00:36:58 +00:00
x86_64 nptl: x86_64: Use same code for CURRENT_STACK_FRAME and stackinfo_get_sp 2024-11-18 12:50:33 -08:00