diff options
author | gdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-09-06 21:33:46 +0000 |
---|---|---|
committer | gdr <gdr@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-09-06 21:33:46 +0000 |
commit | 53d712d97ec1168e74920b0658b9c33e788cd09e (patch) | |
tree | d8596b3dc187c74de7b6bee2be1ef96388be99f5 /gcc/toplev.c | |
parent | 3bd975bc00b481ce8aa5fd2ffd703c5653e6933b (diff) | |
download | gcc-53d712d97ec1168e74920b0658b9c33e788cd09e.tar.gz |
* diagnostic.c (announce_function): Move to toplev.c.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71146 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r-- | gcc/toplev.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c index b7d23b2ee43..462704c8fa3 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. */ |