From 1f49441a27da312f75feb53db14c4e025f7eb7a2 Mon Sep 17 00:00:00 2001 From: seyko Date: Fri, 22 Apr 2016 18:29:56 +0300 Subject: .rept asm directive and '.' alone is a token now in *.S (not an identifier) representing a current position in the code (PC). --- tccpp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tccpp.c') diff --git a/tccpp.c b/tccpp.c index b991944..e1fabbb 100644 --- a/tccpp.c +++ b/tccpp.c @@ -2784,7 +2784,8 @@ maybe_newline: cstr_reset(&tokcstr); cstr_ccat(&tokcstr, '.'); goto parse_num; - } else if (parse_flags & PARSE_FLAG_ASM_FILE) { + } else if ((parse_flags & PARSE_FLAG_ASM_FILE) + && (isidnum_table[c - CH_EOF] & (IS_ID|IS_NUM))) { *--p = c = '.'; goto parse_ident_fast; } else if (c == '.') { -- cgit v1.3.1