diff options
| author | Detlef Riekenberg <tcc.dev@web.de> | 2010-04-05 12:43:51 +0200 |
|---|---|---|
| committer | Detlef Riekenberg <tcc.dev@web.de> | 2010-04-05 12:43:51 +0200 |
| commit | 558258a3012968e27126c36792bb8161290d61f4 (patch) | |
| tree | 27939436d95dad3bd3993f3fd628e07cc0eb994c | |
| parent | 6825c5db7204ce7dafba53da03b34e04d4b70a2b (diff) | |
| download | tinycc-558258a3012968e27126c36792bb8161290d61f4.tar.gz tinycc-558258a3012968e27126c36792bb8161290d61f4.tar.bz2 | |
tccasm: Detect (but ignore) .size directive
--
By by ... Detlef
| -rw-r--r-- | tccasm.c | 21 | ||||
| -rw-r--r-- | tcctok.h | 1 |
2 files changed, 22 insertions, 0 deletions
@@ -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; @@ -252,6 +252,7 @@ DEF_ASM(file) DEF_ASM(globl) DEF_ASM(global) + DEF_ASM(size) DEF_ASM(type) DEF_ASM(text) DEF_ASM(data) |
