https://gcc.gnu.org/g:677b268047c97ed22209c73815987c9159f39207

commit r17-6208-g677b268047c97ed22209c73815987c9159f39207
Author: LIU Hao <[email protected]>
Date:   Thu Nov 12 20:04:20 2026 +0800

    libgcc/cygwin: Fix a typo in `___chkstk`
    
    The CFI directive said %eax, but it is %ecx that has been saved.
    
    libgcc/ChangeLog:
    
            * config/i386/cygwin.S: Fix a typo in `___chkstk`.
    
    Signed-off-by: LIU Hao <[email protected]>
    Signed-off-by: Jonathan Yong <[email protected]>

Diff:
---
 libgcc/config/i386/cygwin.S | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libgcc/config/i386/cygwin.S b/libgcc/config/i386/cygwin.S
index d96578bdc45d..12cdad48c820 100644
--- a/libgcc/config/i386/cygwin.S
+++ b/libgcc/config/i386/cygwin.S
@@ -79,7 +79,7 @@ ___chkstk:
 ___chkstk:
 __alloca:
        pushl   %ecx                    /* save temp */
-       cfi_push(%eax)
+       cfi_push(%ecx)
        leal    8(%esp), %ecx           /* point past return addr */
        cmpl    $0x1000, %eax           /* > 4k ?*/
        jb      2f

Reply via email to