mirror of
https://github.com/mirror/tinycc.git
synced 2025-02-04 06:30:10 +08: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 {
|
} else {
|
||||||
if (!(saved_parse_flags & PARSE_FLAG_ASM_COMMENTS))
|
if (!(saved_parse_flags & PARSE_FLAG_ASM_COMMENTS))
|
||||||
warning("Ignoring unknown preprocessing directive #%s", get_tok_str(tok, &tokc));
|
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;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
# gas comment with ``gnu'' style quotes
|
||||||
|
|
||||||
/* some directive tests */
|
/* some directive tests */
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user