From 15b8a5709655b7f64e0c25f4cbf34887134cfed9 Mon Sep 17 00:00:00 2001 From: Joe Soroka Date: Wed, 23 Feb 2011 15:13:08 -0800 Subject: tccpp: treat gas comments in .S files as raw text, not tokens --- tccpp.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tccpp.c') diff --git a/tccpp.c b/tccpp.c index 464d60b..88e6c79 100644 --- a/tccpp.c +++ b/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; } -- cgit v1.3.1