[hurd,commited] powerpc longjmp: Fix build after chk hidden builtin fix

Message ID 20230804080441.1562084-1-samuel.thibault@ens-lyon.org
State Committed
Commit 41d8c3bc33bcae1ebb8077b0442caef4917f763a
Headers
Series [hurd,commited] powerpc longjmp: Fix build after chk hidden builtin fix |

Checks

Context Check Description
redhat-pt-bot/TryBot-apply_patch fail Patch failed to apply to master at the time it was sent
linaro-tcwg-bot/tcwg_glibc_build--master-arm warning Patch failed to apply
redhat-pt-bot/TryBot-32bit fail Patch series failed to apply
linaro-tcwg-bot/tcwg_glibc_check--master-arm warning Patch failed to apply
linaro-tcwg-bot/tcwg_glibc_build--master-aarch64 warning Patch failed to apply
linaro-tcwg-bot/tcwg_glibc_check--master-aarch64 warning Patch failed to apply

Commit Message

Samuel Thibault Aug. 4, 2023, 8:04 a.m. UTC
  04bf7d2d8a79 ("chk: Add and fix hidden builtin definitions for *_chk")
added an #undef for longjmp and siglongjmp to compensate for the
definition in include/setjmp.h, but missed doing so for the powerpc
version too.

Fixes: 04bf7d2d8a79 ("chk: Add and fix hidden builtin definitions for
*_chk")
---
 sysdeps/powerpc/longjmp.c | 3 +++
 1 file changed, 3 insertions(+)
  

Patch

diff --git a/sysdeps/powerpc/longjmp.c b/sysdeps/powerpc/longjmp.c
index 94addccf52..438a541b96 100644
--- a/sysdeps/powerpc/longjmp.c
+++ b/sysdeps/powerpc/longjmp.c
@@ -22,6 +22,9 @@ 
 #include <setjmp.h>
 #include <signal.h>
 
+#undef longjmp
+#undef siglongjmp
+
 extern void __vmx__longjmp (__jmp_buf __env, int __val)
      __attribute__ ((noreturn));
 extern void __vmx__libc_longjmp (sigjmp_buf env, int val)