mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-22 23:59:50 +08:00
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:
parent
ccc49bed1c
commit
c7544dd8fd
@ -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.
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user