cppmain.c (setup_callbacks): Disable #pragma and #ident callbacks when processing assembly language.

* cppmain.c (setup_callbacks): Disable #pragma and #ident
	callbacks when processing assembly language.

From-SVN: r50346
This commit is contained in:
Zack Weinberg 2002-03-06 07:50:03 +00:00 committed by Zack Weinberg
parent ccc49bed1c
commit c7544dd8fd
2 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2002-03-05 Zack Weinberg <zack@codesourcery.com>
* cppmain.c (setup_callbacks): Disable #pragma and #ident
callbacks when processing assembly language.
2002-03-05 John David Anglin <dave@hiauly1.hia.nrc.ca>
* pa.h (ASM_FILE_END): Define.

View File

@ -193,8 +193,13 @@ setup_callbacks ()
if (! options->no_output)
{
cb->line_change = cb_line_change;
cb->ident = cb_ident;
cb->def_pragma = cb_def_pragma;
/* Don't emit #pragma or #ident directives if we are processing
assembly language; the assembler may choke on them. */
if (options->lang != CLK_ASM)
{
cb->ident = cb_ident;
cb->def_pragma = cb_def_pragma;
}
if (! options->no_line_commands)
cb->file_change = cb_file_change;
}