diff options
Diffstat (limited to 'gcc/ipa-pure-const.c')
-rw-r--r-- | gcc/ipa-pure-const.c | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/gcc/ipa-pure-const.c b/gcc/ipa-pure-const.c index b6810a89bcb..6bdd4d14bdf 100644 --- a/gcc/ipa-pure-const.c +++ b/gcc/ipa-pure-const.c @@ -192,6 +192,7 @@ warn_function_noreturn (tree decl) = suggest_attribute (OPT_Wsuggest_attribute_noreturn, decl, true, warned_about, "noreturn"); } + /* Init the function state. */ static void @@ -387,7 +388,7 @@ state_from_flags (enum pure_const_state_e *state, bool *looping, else { if (dump_file && (dump_flags & TDF_DETAILS)) - fprintf (dump_file, " neihter\n"); + fprintf (dump_file, " neither\n"); *state = IPA_NEITHER; *looping = true; } @@ -1573,7 +1574,7 @@ local_pure_const (void) warn_function_noreturn (cfun->decl); if (dump_file) fprintf (dump_file, "Function found to be noreturn: %s\n", - lang_hooks.decl_printable_name (current_function_decl, 2)); + current_function_name ()); /* Update declaration and reduce profile to executed once. */ TREE_THIS_VOLATILE (current_function_decl) = 1; @@ -1597,8 +1598,7 @@ local_pure_const (void) if (dump_file) fprintf (dump_file, "Function found to be %sconst: %s\n", l->looping ? "looping " : "", - lang_hooks.decl_printable_name (current_function_decl, - 2)); + current_function_name ()); } else if (DECL_LOOPING_CONST_OR_PURE_P (current_function_decl) && !l->looping) @@ -1610,8 +1610,7 @@ local_pure_const (void) } if (dump_file) fprintf (dump_file, "Function found to be non-looping: %s\n", - lang_hooks.decl_printable_name (current_function_decl, - 2)); + current_function_name ()); } break; @@ -1627,8 +1626,7 @@ local_pure_const (void) if (dump_file) fprintf (dump_file, "Function found to be %spure: %s\n", l->looping ? "looping " : "", - lang_hooks.decl_printable_name (current_function_decl, - 2)); + current_function_name ()); } else if (DECL_LOOPING_CONST_OR_PURE_P (current_function_decl) && !l->looping) @@ -1640,8 +1638,7 @@ local_pure_const (void) } if (dump_file) fprintf (dump_file, "Function found to be non-looping: %s\n", - lang_hooks.decl_printable_name (current_function_decl, - 2)); + current_function_name ()); } break; @@ -1654,8 +1651,7 @@ local_pure_const (void) changed = true; if (dump_file) fprintf (dump_file, "Function found to be nothrow: %s\n", - lang_hooks.decl_printable_name (current_function_decl, - 2)); + current_function_name ()); } free (l); if (changed) |