tccpp: treat gas comments in .S files as raw text, not tokens

This commit is contained in:
Joe Soroka 2011-02-23 15:13:08 -08:00
parent 85642f887c
commit 15b8a57096
2 changed files with 6 additions and 0 deletions

View File

@ -1625,6 +1625,11 @@ include_done:
} else {
if (!(saved_parse_flags & PARSE_FLAG_ASM_COMMENTS))
warning("Ignoring unknown preprocessing directive #%s", get_tok_str(tok, &tokc));
else {
/* this is a gas line comment in an 'S' file. */
file->buf_ptr = parse_line_comment(file->buf_ptr);
goto the_end;
}
}
break;
}

View File

@ -1,3 +1,4 @@
# gas comment with ``gnu'' style quotes
/* some directive tests */