diff options
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r-- | gcc/toplev.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c index bb6a4486d83..9c470025c37 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -1787,8 +1787,13 @@ open_dump_file (index, decl) free (dump_name); if (decl) - fprintf (rtl_dump_file, "\n;; Function %s\n\n", - (*lang_hooks.decl_printable_name) (decl, 2)); + fprintf (rtl_dump_file, "\n;; Function %s%s\n\n", + (*lang_hooks.decl_printable_name) (decl, 2), + cfun->function_frequency == FUNCTION_FREQUENCY_HOT + ? " (hot)" + : cfun->function_frequency == FUNCTION_FREQUENCY_UNLIKELY_EXECUTED + ? " (unlikely executed)" + : ""); timevar_pop (TV_DUMP); return 1; |