Commit c7544dd8 by Zack Weinberg Committed by Zack Weinberg

cppmain.c (setup_callbacks): Disable #pragma and #ident callbacks when…

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
parent ccc49bed
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.
......
......@@ -193,8 +193,13 @@ setup_callbacks ()
if (! options->no_output)
{
cb->line_change = cb_line_change;
/* 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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment