https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92269
Bug ID: 92269 Summary: Profiling (-p) does not work on H8 Product: gcc Version: 9.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: mti-1 at tillenius dot com Target Milestone: --- gcc/config/h8300/h8300.h seems to be missing a single '.' in the definition of FUNCTION_PROFILER macro. It should be ".LP" rather than just "LP". #define FUNCTION_PROFILER(FILE, LABELNO) \ fprintf (FILE, "\t%s\t#.LP%d,%s\n\tjsr @mcount\n", \ h8_mov_op, (LABELNO), h8_reg_names[0]);