https://gcc.gnu.org/g:a17b22cfa95f35baa32bb6ce4b61413eeaf10612

commit r16-7946-ga17b22cfa95f35baa32bb6ce4b61413eeaf10612
Author: Eric Botcazou <[email protected]>
Date:   Sat Mar 7 22:46:05 2026 +0100

    Ada: adjust pattern matching to new stack probes on x86/Linux
    
    gcc/ada/
            PR target/124336
            * init.c (__gnat_adjust_context_for_raise) [x86/Linux]: Fix typo.

Diff:
---
 gcc/ada/init.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/ada/init.c b/gcc/ada/init.c
index edf66182a98e..7aced7fe8139 100644
--- a/gcc/ada/init.c
+++ b/gcc/ada/init.c
@@ -516,9 +516,9 @@ __gnat_adjust_context_for_raise (int signo 
ATTRIBUTE_UNUSED, void *ucontext)
       /* The pattern is "orq $0x0,(%rsp)" for a probe in 64-bit mode.  */
       && ((*pc & 0xffffffffffLL) == 0x00240c8348LL
          /* The pattern is "orl $0x0,(%rsp)" for a probe in x32 mode.  */
-         || (*pc & 0xffffffffLL) == 0x00240c83LL)
+         || (*pc & 0xffffffffLL) == 0x00240c83LL
          /* The pattern may also be "orb $0x0,(%rsp)" in both modes.  */
-         || (*pc & 0xffffffffLL) == 0x00240c80LL)
+         || (*pc & 0xffffffffLL) == 0x00240c80LL))
     mcontext->gregs[REG_RSP] += 4096 + 4 * sizeof (unsigned long);
 #elif defined (__ia64__)
   /* ??? The IA-64 unwinder doesn't compensate for signals.  */

Reply via email to