diff options
| author | Michael Matz <matz@suse.de> | 2016-08-02 17:45:40 +0200 |
|---|---|---|
| committer | Michael Matz <matz@suse.de> | 2016-12-15 17:47:09 +0100 |
| commit | 8765826465e6103d419808f78e8fc3f97218e9a6 (patch) | |
| tree | 069227b34cf10834870c4bace58d25ea4936d9c3 /i386-asm.c | |
| parent | b7ca74577b56190954eb6eeda8c22996b877f3c5 (diff) | |
| download | tinycc-8765826465e6103d419808f78e8fc3f97218e9a6.tar.gz tinycc-8765826465e6103d419808f78e8fc3f97218e9a6.tar.bz2 | |
inline-asm: Accept "flags" clobber
Diffstat (limited to 'i386-asm.c')
| -rw-r--r-- | i386-asm.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -347,7 +347,7 @@ static void parse_operand(TCCState *s1, Operand *op) goto no_skip; } else { reg_error: - tcc_error("unknown register"); + tcc_error("unknown register %%%s", get_tok_str(tok, &tokc)); } next(); no_skip: ; @@ -1487,7 +1487,8 @@ ST_FUNC void asm_clobber(uint8_t *clobber_regs, const char *str) TokenSym *ts; if (!strcmp(str, "memory") || - !strcmp(str, "cc")) + !strcmp(str, "cc") || + !strcmp(str, "flags")) return; ts = tok_alloc(str, strlen(str)); reg = ts->tok; |
