libgcc/cygwin: Fix a typo in `___chkstk`
Corrects a typo in the `___chkstk` function's CFI directives for Cygwin targets.
A typo in the Common Frame Interface (CFI) directives for the ___chkstk function in libgcc’s Cygwin configuration has been fixed. The directive incorrectly specified %eax when it should have referred to %ecx, which is the register actually being saved.
In Details
This commit corrects a typo in the assembly code for the ___chkstk function within the libgcc library for Cygwin targets. Specifically, the Common Frame Interface (CFI) directives, used for stack unwinding and debugging information, incorrectly referenced %eax instead of the register %ecx that is being saved and restored. This correction ensures that CFI information accurately reflects the register state, which is important for tools like debuggers and profilers.
- libgcc
- The GCC runtime library. It provides essential functions that the compiler uses for operations that cannot be directly generated in machine code, such as division by zero, integer division, and exception handling support.
- Cygwin
- A POSIX-compatible environment for Windows that allows developers to run Unix-like applications. GCC on Cygwin provides a Unix-like development experience on Windows.
- CFI directive
- Common Frame Interface directives. These are instructions embedded in assembly code or compiler output that describe how to unwind the call stack and how registers are saved and restored. They are crucial for debugging and performance analysis tools.
- ___chkstk
- A function (often found in the C runtime library or libgcc) that checks and potentially expands the stack space before a function is called. This is a security mechanism to prevent stack overflows.
- register
- A small, high-speed storage location within a CPU that holds data and instructions that are currently being processed. Registers like %eax and %ecx are used for various computational tasks.