mirror of
https://github.com/frida/tinycc
synced 2024-11-28 10:33:07 +03:00
tccpp: treat gas comments in .S files as raw text, not tokens
This commit is contained in:
parent
85642f887c
commit
15b8a57096
5
tccpp.c
5
tccpp.c
@ -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;
|
||||
}
|
||||
|
@ -1,3 +1,4 @@
|
||||
# gas comment with ``gnu'' style quotes
|
||||
|
||||
/* some directive tests */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user