diff options
| author | Erica Z <[email protected]> | 2024-05-12 10:55:05 +0200 |
|---|---|---|
| committer | Quentin Carbonneaux <[email protected]> | 2024-05-28 10:39:41 +0200 |
| commit | c8220b638b17cb9eb583cca15d1b02c36a28ed2f (patch) | |
| tree | 4717a6346f4302c2ae759e4109b81b4f50682c3f /amd64/emit.c | |
| parent | 620277c004b247559d53e4d6ef8053705be9b110 (diff) | |
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.
Diffstat (limited to 'amd64/emit.c')
| -rw-r--r-- | amd64/emit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/amd64/emit.c b/amd64/emit.c index 9636209..2a9b9d2 100644 --- a/amd64/emit.c +++ b/amd64/emit.c @@ -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 |
