From 0761f342c524819173182b1cb0ec75d02c2f709b Mon Sep 17 00:00:00 2001 From: Gabriel Dos Reis Date: Sat, 6 Sep 2003 21:33:46 +0000 Subject: * diagnostic.c (announce_function): Move to toplev.c. From-SVN: r71146 --- gcc/toplev.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'gcc/toplev.c') diff --git a/gcc/toplev.c b/gcc/toplev.c index b7d23b2..462704c 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -1205,6 +1205,23 @@ get_src_pwd (void) return src_pwd; } +/* Called when the start of a function definition is parsed, + this function prints on stderr the name of the function. */ +void +announce_function (tree decl) +{ + if (!quiet_flag) + { + if (rtl_dump_and_exit) + verbatim ("%s ", IDENTIFIER_POINTER (DECL_NAME (decl))); + else + verbatim (" %s", (*lang_hooks.decl_printable_name) (decl, 2)); + fflush (stderr); + pp_needs_newline (global_dc->printer) = true; + diagnostic_set_last_function (global_dc); + } +} + /* Set up a default flag_random_seed and local_tick, unless the user already specified one. */ -- cgit v1.1