aboutsummaryrefslogtreecommitdiff
path: root/tccasm.c
diff options
context:
space:
mode:
authorDaniel Glöckner <daniel-gl@gmx.net>2010-05-06 21:42:37 +0200
committerDaniel Glöckner <daniel-gl@gmx.net>2010-05-06 21:42:37 +0200
commit6eac6b7254ad921ea37ab256a41083ec57a6dc0c (patch)
treec1258183db381f62bb24782a7ae13126e3e6d69b /tccasm.c
parent8eb86ab78d19cc9e97b09cd6107397221552817d (diff)
downloadtinycc-6eac6b7254ad921ea37ab256a41083ec57a6dc0c.tar.gz
tinycc-6eac6b7254ad921ea37ab256a41083ec57a6dc0c.tar.bz2
Revert "tccpp: Allow local labels to start with a dot"
This reverts commit f740485a5ab2ecef741bf1161b9feeea9c18cac0. It breaks access to structure elements starting with L
Diffstat (limited to 'tccasm.c')
-rw-r--r--tccasm.c5
1 files changed, 1 insertions, 4 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 == '=') {