From efe0fd930e41c0d8b94ec818fbb0f4ce2b4ef027 Mon Sep 17 00:00:00 2001 From: Jeff Law Date: Thu, 23 Jan 2020 15:55:20 -0700 Subject: [PATCH] Fix profiling issue on H8 port * config/h8300/h8300.h (FUNCTION_PROFILER): Fix emission of profiling label --- gcc/ChangeLog | 5 +++++ gcc/config/h8300/h8300.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f2f77b7cdbc..c00deeed142 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2020-01-23 Mikael Tillenius + + * config/h8300/h8300.h (FUNCTION_PROFILER): Fix emission of + profiling label + 2020-01-23 Jakub Jelinek PR rtl-optimization/93402 diff --git a/gcc/config/h8300/h8300.h b/gcc/config/h8300/h8300.h index 3e1595a8e1f..32e5f7dc5cf 100644 --- a/gcc/config/h8300/h8300.h +++ b/gcc/config/h8300/h8300.h @@ -434,7 +434,7 @@ struct cum_arg for profiling a function entry. */ #define FUNCTION_PROFILER(FILE, LABELNO) \ - fprintf (FILE, "\t%s\t#LP%d,%s\n\tjsr @mcount\n", \ + fprintf (FILE, "\t%s\t#.LP%d,%s\n\tjsr @mcount\n", \ h8_mov_op, (LABELNO), h8_reg_names[0]); /* EXIT_IGNORE_STACK should be nonzero if, when returning from a function, -- 2.30.2