]> git.ipfire.org Git - thirdparty/gcc.git/commit
stack_usage: Print out the user visibility name too
authorAndrew Pinski <andrew.pinski@oss.qualcomm.com>
Tue, 19 May 2026 01:20:14 +0000 (18:20 -0700)
committerAndrew Pinski <andrew.pinski@oss.qualcomm.com>
Sun, 24 May 2026 14:54:36 +0000 (07:54 -0700)
commit960895db66868a81fafbebe4392bf0f1054fc101
tree2fac80a9d099c562cbe36acfa2517c4809240eee
parentb57b0a72eb482eeeb2572119a0a362869d5b957a
stack_usage: Print out the user visibility name too

Since the output here should be usable via humans, we
should print out the user realable name and not just the
mangled name. For C, that means we print out the same name
twice which is fine. The mangled name is useful to correspond
the assembly with the stack usage too.

For C++ it will something like:
t.c:2:5:_Z5unopti `int unopt(int)` 16 static

Bootstrapped and tested on x86_64-linux-gnu.

gcc/ChangeLog:

* toplev.cc (output_stack_usage_1): Print out the human readable
name in quotes.

gcc/testsuite/ChangeLog:

* gcc.dg/stack-usage-1.c: Update testcase.

Signed-off-by: Andrew Pinski <andrew.pinski@oss.qualcomm.com>
gcc/testsuite/gcc.dg/stack-usage-1.c
gcc/toplev.cc