aboutsummaryrefslogtreecommitdiff
path: root/tccasm.c
diff options
context:
space:
mode:
authorDetlef Riekenberg <tcc.dev@web.de>2010-04-05 12:43:51 +0200
committerDetlef Riekenberg <tcc.dev@web.de>2010-04-05 12:43:51 +0200
commit558258a3012968e27126c36792bb8161290d61f4 (patch)
tree27939436d95dad3bd3993f3fd628e07cc0eb994c /tccasm.c
parent6825c5db7204ce7dafba53da03b34e04d4b70a2b (diff)
downloadtinycc-558258a3012968e27126c36792bb8161290d61f4.tar.gz
tinycc-558258a3012968e27126c36792bb8161290d61f4.tar.bz2
tccasm: Detect (but ignore) .size directive
-- By by ... Detlef
Diffstat (limited to 'tccasm.c')
-rw-r--r--tccasm.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/tccasm.c b/tccasm.c
index 17c4e4b..3097876 100644
--- a/tccasm.c
+++ b/tccasm.c
@@ -555,6 +555,27 @@ static void asm_parse_directive(TCCState *s1)
next();
}
break;
+ case TOK_ASM_size:
+ {
+ Sym *sym;
+
+ next();
+ sym = label_find(tok);
+ if (!sym) {
+ error("label not found: %s", get_tok_str(tok, NULL));
+ }
+
+ next();
+ skip(',');
+ /* XXX .size name,label2-label1 */
+ if (s1->warn_unsupported)
+ warning("ignoring .size %s,*", get_tok_str(tok, NULL));
+
+ while (tok != '\n' && tok != CH_EOF) {
+ next();
+ }
+ }
+ break;
case TOK_ASM_type:
{
Sym *sym;