diff options
Diffstat (limited to 'gcc/cppmain.c')
-rw-r--r-- | gcc/cppmain.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/gcc/cppmain.c b/gcc/cppmain.c index ee157ca..503fa30 100644 --- a/gcc/cppmain.c +++ b/gcc/cppmain.c @@ -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; } |