gcc/toplev.cc: Output mangled function names with -fstack-usage

This is more useful for automated stack checking tools such
as Daniel Beer's avstack.pl

gcc/ChangeLog:

	* toplev.cc (output_stack_usage_1): Pass RINT_DECL_UNIQUE_NAME
	instead of PRINT_DECL_NAME to print_decl_identifier.

Signed-off-by: Tomas Härdin <git@haerdin.se>
This commit is contained in:
Tomas Härdin
2026-04-28 22:49:32 +02:00
committed by Andrew Pinski
parent c65691bc5a
commit 4e760f7662

View File

@@ -840,7 +840,7 @@ output_stack_usage_1 (FILE *cf)
if (stack_usage_file)
{
print_decl_identifier (stack_usage_file, current_function_decl,
PRINT_DECL_ORIGIN | PRINT_DECL_NAME
PRINT_DECL_ORIGIN | PRINT_DECL_UNIQUE_NAME
| PRINT_DECL_REMAP_DEBUG);
fprintf (stack_usage_file, "\t" HOST_WIDE_INT_PRINT_DEC"\t%s\n",
stack_usage, stack_usage_kind_str[stack_usage_kind]);