]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gcc/toplev.cc: Output mangled function names with -fstack-usage
authorTomas Härdin <git@haerdin.se>
Tue, 28 Apr 2026 20:49:32 +0000 (22:49 +0200)
committerAndrew Pinski <andrew.pinski@oss.qualcomm.com>
Thu, 30 Apr 2026 15:24:49 +0000 (08:24 -0700)
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>
gcc/toplev.cc

index 682459220a20c2a2119c6f2de519792de6a32936..66fa927c53d3d7af2a4be65c0ac7d225f6c118fa 100644 (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]);