diff options
author | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-03-06 07:50:03 +0000 |
---|---|---|
committer | zack <zack@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-03-06 07:50:03 +0000 |
commit | 3c40011e629b70fdae2b5db83544a5a1ccb85020 (patch) | |
tree | bcc42a2be5b1991e2da512df55e9b9cc5ed5cc05 /gcc/cppmain.c | |
parent | 5a3c5094048a349467019065ab1f09828e47ec19 (diff) | |
download | gcc-3c40011e629b70fdae2b5db83544a5a1ccb85020.tar.gz |
* cppmain.c (setup_callbacks): Disable #pragma and #ident
callbacks when processing assembly language.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50346 138bc75d-0d04-0410-961f-82ee72b054a4
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 ee157ca61ec..503fa308956 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; } |