aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Law <law@redhat.com>2020-01-23 15:55:20 -0700
committerJeff Law <law@redhat.com>2020-01-23 15:55:20 -0700
commitefe0fd930e41c0d8b94ec818fbb0f4ce2b4ef027 (patch)
tree7a92d1a7703fa74fc8efff7cdb5f9d96fcc76947
parent3a26c7b3a3569a5e1b6f0342e50aefe76ad0ec4d (diff)
downloadgcc-efe0fd930e41c0d8b94ec818fbb0f4ce2b4ef027.zip
gcc-efe0fd930e41c0d8b94ec818fbb0f4ce2b4ef027.tar.gz
gcc-efe0fd930e41c0d8b94ec818fbb0f4ce2b4ef027.tar.bz2
Fix profiling issue on H8 port
* config/h8300/h8300.h (FUNCTION_PROFILER): Fix emission of profiling label
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/config/h8300/h8300.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index f2f77b7..c00deee 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2020-01-23 Mikael Tillenius <mti-1@tillenius.com>
+
+ * config/h8300/h8300.h (FUNCTION_PROFILER): Fix emission of
+ profiling label
+
2020-01-23 Jakub Jelinek <jakub@redhat.com>
PR rtl-optimization/93402
diff --git a/gcc/config/h8300/h8300.h b/gcc/config/h8300/h8300.h
index 3e1595a..32e5f7d 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,