Landing: 4e760f7662dc

Project / Subsystem

gcc / gcc/toplev.cc

Date

2026-04-28

Author

Tomas Härdin

Commit

4e760f7662dc6d0aa7dc8f6f733c0f5c15124811

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gcc/toplev.cc
patch_id
commit_hash
4e760f7662dc6d0aa7dc8f6f733c0f5c15124811
source_type
github
headline
gcc/toplev.cc: Output mangled function names with -fstack-usage
tldr
The -fstack-usage option now outputs mangled function names.
author
Tomas Härdin
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • gcc
  • stack usage
  • mangling
  • debugging
discussion_id_link
bugzilla_pr
date
2026-04-28T00:00:00.000Z

When using the -fstack-usage option in GCC, this commit modifies the output to include mangled function names instead of plain names. This provides more precise identification of functions, especially in the presence of overloading or name collisions. This makes the output more useful for automated stack checking tools like avstack.pl, which rely on unique function identifiers.