cppmain.c (setup_callbacks): Set line callback only if outputting preprocessed source.

* cppmain.c (setup_callbacks): Set line callback only
	if outputting preprocessed source.

From-SVN: r45632
This commit is contained in:
Neil Booth 2001-09-15 16:33:43 +00:00 committed by Neil Booth
parent cb6edbcb19
commit f0581dc714
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2001-09-15 Neil Booth <neil@daikokuya.demon.co.uk>
* cppmain.c (setup_callbacks): Set line callback only
if outputting preprocessed source.
2001-09-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* collect2.c (main): Const-ification.

View File

@ -193,9 +193,9 @@ setup_callbacks ()
{
cpp_callbacks *cb = cpp_get_callbacks (pfile);
cb->line_change = cb_line_change;
if (! options->no_output)
{
cb->line_change = cb_line_change;
cb->ident = cb_ident;
cb->def_pragma = cb_def_pragma;
if (! options->no_line_commands)