aboutsummaryrefslogtreecommitdiff
path: root/tccasm.c
diff options
context:
space:
mode:
authorMichael Matz <matz@suse.de>2016-07-11 21:16:43 +0200
committerMichael Matz <matz@suse.de>2016-12-15 17:47:08 +0100
commite3f2a683113bb28bc1e9820dfe18d3bd8e0156d2 (patch)
treea8c6edf4e3ba39353a19685c759e8507ff4959e3 /tccasm.c
parent6a5ec8cb3cce7399facad79f0cb1513018220b84 (diff)
downloadtinycc-e3f2a683113bb28bc1e9820dfe18d3bd8e0156d2.tar.gz
tinycc-e3f2a683113bb28bc1e9820dfe18d3bd8e0156d2.tar.bz2
tcc-asm: Parse .size directive correctly
When the .size directive was closed with a ';' tcc eat everything after it up to lineend.
Diffstat (limited to 'tccasm.c')
-rw-r--r--tccasm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tccasm.c b/tccasm.c
index eed3cdb..ea65171 100644
--- a/tccasm.c
+++ b/tccasm.c
@@ -729,7 +729,7 @@ static void asm_parse_directive(TCCState *s1)
next();
skip(',');
- while (tok != '\n' && tok != CH_EOF) {
+ while (tok != TOK_LINEFEED && tok != ';' && tok != CH_EOF) {
next();
}
}