On 2/13/23 12:27, Rasmus Villemoes wrote:
The .su files generated with -fstack-usage are arguably debug info. In
order to make builds more reproducible, apply the same remapping logic
to the recorded file names as for when producing the debug info
embedded in the object files.

To this end, teach print_decl_identifier() a new
PRINT_DECL_REMAP_DEBUG flag and use that from output_stack_usage_1().

gcc/ChangeLog:

        * print-tree.h (PRINT_DECL_REMAP_DEBUG): New flag.
        * print-tree.cc (print_decl_identifier): Implement it.
        * toplev.cc (output_stack_usage_1): Use it.
OK for the trunk.
jeff

Reply via email to