diff options
author | Zack Weinberg <zack@codesourcery.com> | 2002-03-06 07:50:03 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2002-03-06 07:50:03 +0000 |
commit | c7544dd8fda9589137ffe91d90ca59eb86eabf14 (patch) | |
tree | bcc42a2be5b1991e2da512df55e9b9cc5ed5cc05 /gcc/cppmain.c | |
parent | ccc49bed1c10b24ad339566dec8482e58bd01129 (diff) | |
download | gcc-c7544dd8fda9589137ffe91d90ca59eb86eabf14.zip gcc-c7544dd8fda9589137ffe91d90ca59eb86eabf14.tar.gz gcc-c7544dd8fda9589137ffe91d90ca59eb86eabf14.tar.bz2 |
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
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; } |