* diagnostic.c (announce_function): Move to toplev.c.
From-SVN: r71146
This commit is contained in:
parent
c87ceb139f
commit
0761f342c5
@ -1,3 +1,7 @@
|
|||||||
|
2003-09-06 Gabriel Dos Reis <gdr@integrable-solutions.net>
|
||||||
|
|
||||||
|
* diagnostic.c (announce_function): Move to toplev.c.
|
||||||
|
|
||||||
2003-09-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
|
2003-09-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
|
||||||
|
|
||||||
* gcse.c (expr_equiv_p): Don't consider anything to be equal to
|
* gcse.c (expr_equiv_p): Don't consider anything to be equal to
|
||||||
|
@ -279,23 +279,6 @@ diagnostic_action_after_output (diagnostic_context *context,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 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);
|
|
||||||
global_dc->printer->need_newline = true;
|
|
||||||
diagnostic_set_last_function (global_dc);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/* The default function to print out name of current function that caused
|
/* The default function to print out name of current function that caused
|
||||||
an error. */
|
an error. */
|
||||||
void
|
void
|
||||||
|
17
gcc/toplev.c
17
gcc/toplev.c
@ -1205,6 +1205,23 @@ get_src_pwd (void)
|
|||||||
return src_pwd;
|
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
|
/* Set up a default flag_random_seed and local_tick, unless the user
|
||||||
already specified one. */
|
already specified one. */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user