stack_usage: Print out the user visibility name, too
The GCC stack usage tool now prints human-readable function names alongside mangled names.
The stack usage analysis tool in GCC now prints both the mangled and human-readable names of functions. This makes the output easier to understand, especially for C++ code where mangled names can be difficult to decipher. The mangled name is still included for correspondence with assembly code.
In Details
The stack usage analysis tool (toplev.cc) outputs stack usage information for functions. This commit modifies the output to include the user-visible name alongside the mangled name, improving readability. The mangled name is retained for correlation with assembly.
For Context
When compiling code, it's important to understand how much memory each function uses on the stack. The stack_usage tool in GCC helps developers analyze this. This commit improves the tool's output by now showing both the internal (mangled) name of a function, and the name as it appears in the code. This makes it easier for developers to quickly identify which functions are using the most stack space.