From 6eac6b7254ad921ea37ab256a41083ec57a6dc0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Gl=C3=B6ckner?= Date: Thu, 6 May 2010 21:42:37 +0200 Subject: [PATCH] Revert "tccpp: Allow local labels to start with a dot" This reverts commit f740485a5ab2ecef741bf1161b9feeea9c18cac0. It breaks access to structure elements starting with L --- tccasm.c | 5 +---- tccpp.c | 6 ------ 2 files changed, 1 insertion(+), 10 deletions(-) diff --git a/tccasm.c b/tccasm.c index b5b2fff..28c9fad 100644 --- a/tccasm.c +++ b/tccasm.c @@ -761,11 +761,8 @@ static int tcc_assemble_internal(TCCState *s1, int do_preprocess) opcode = tok; next(); if (tok == ':') { - char * label = get_tok_str(opcode, NULL); - /* new label */ - asm_new_label(s1, opcode, - (label && label[0] == '.' && label[1] == 'L') ? 1 : 0); + asm_new_label(s1, opcode, 0); next(); goto redo; } else if (tok == '=') { diff --git a/tccpp.c b/tccpp.c index 51348cf..9a4cbca 100644 --- a/tccpp.c +++ b/tccpp.c @@ -2279,12 +2279,6 @@ maybe_newline: tok = TOK_PPNUM; break; case '.': - /* check first for a local label (.Lxx:) */ - if (p[1] == 'L') { - /* fast case */ - goto parse_ident_fast; - } - /* special dot handling because it can also start a number */ PEEKC(c, p); if (isnum(c)) {