On 11/12/26 15:18, LIU Hao wrote:
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]>
---
  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

Pushed to master branch.

Reply via email to