replace asm keyword
when applying a custom set of CFLAGS under clang that does not include -std=c99, asm is treated as a keyword and as such can not be used as an identifier. this prevents the issue by renaming the offending variables.
This commit is contained in:
parent
620277c004
commit
c8220b638b
3 changed files with 6 additions and 6 deletions
|
@ -60,7 +60,7 @@ enum {
|
|||
static struct {
|
||||
short op;
|
||||
short cls;
|
||||
char *asm;
|
||||
char *fmt;
|
||||
} omap[] = {
|
||||
{ Oadd, Ka, "+add%k %1, %=" },
|
||||
{ Osub, Ka, "-sub%k %1, %=" },
|
||||
|
@ -393,7 +393,7 @@ emitins(Ins i, Fn *fn, FILE *f)
|
|||
|| (omap[o].cls == Ka))
|
||||
break;
|
||||
}
|
||||
emitf(omap[o].asm, &i, fn, f);
|
||||
emitf(omap[o].fmt, &i, fn, f);
|
||||
break;
|
||||
case Onop:
|
||||
/* just do nothing for nops, they are inserted
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue