about summary refs log tree commit diff
path: root/sysdeps/x86_64/strnlen.S
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-03-08 17:31:08 -0300
committerShu-Chun Weng <scw@google.com>2024-11-18 12:50:33 -0800
commit04a99db8c73cb8804fa56a7487d6aa1bf26ee752 (patch)
tree257ebea3d0d6abc4ed3fb13de27dc00a3a1cceea /sysdeps/x86_64/strnlen.S
parent82dcfc6d7bdd5b24a42d8180d31ee403999b9215 (diff)
downloadglibc-04a99db8c73cb8804fa56a7487d6aa1bf26ee752.tar.gz
glibc-04a99db8c73cb8804fa56a7487d6aa1bf26ee752.tar.xz
glibc-04a99db8c73cb8804fa56a7487d6aa1bf26ee752.zip
nptl: x86_64: Use same code for CURRENT_STACK_FRAME and stackinfo_get_sp google/grte/v5-2.27/master
Cherry-picked by scw@google.com from 8cd559cf5afe3894f92c2be6f972e1a4e38c56ca
with local modifications (different file path and not use macros introduced in
01bd62517cc242ae503aaa7002e9e94551803e4d). 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.
Diffstat (limited to 'sysdeps/x86_64/strnlen.S')
0 files changed, 0 insertions, 0 deletions