GCC Newspaper
JUNE 15, 2026
Date
/
Architectures
Components
Topics
News & Policy
Other
gcc

Adjust stack-usage-realign.c for recent stack usage output format change.

Updates a test case to match the new format of the `-fstack-usage` output.

A test case (stack-usage-realign.c) was adjusted to align with a recent change in the output format of the -fstack-usage compiler flag. The -fstack-usage flag emits stack usage information which now includes a second field. This change ensures the test case correctly parses the updated output.

In Details

The file gcc.target/i386/stack-usage-realign.c tests the output of -fstack-usage, which was modified in commit dbb7b2af233 to restore the original format and add a new second field. This commit updates the test to reflect the new output format, preventing test failures.

For Context

The -fstack-usage flag instructs the compiler to generate a file containing the stack usage of each function in the compiled code. This information can be useful for analyzing and optimizing stack usage, especially in embedded systems or other environments with limited stack space. This commit adapts a test case to changes in that flag's output.

Filed Under: teststack usage