diff options
| author | Quentin Carbonneaux <[email protected]> | 2022-09-09 17:40:31 +0200 |
|---|---|---|
| committer | Quentin Carbonneaux <[email protected]> | 2022-10-08 21:48:42 +0200 |
| commit | 00a30954aca97004cb6f586bdeeabb488f1e3c3f (patch) | |
| tree | 951dc4c0a5be04fe7d5aed13f4201eb90c60f841 /amd64/isel.c | |
| parent | 5cea0c20ee3573949a2c24e4b3dea65fcbf6e48b (diff) | |
add support for thread-local storage
The apple targets are not done yet.
Diffstat (limited to 'amd64/isel.c')
| -rw-r--r-- | amd64/isel.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/amd64/isel.c b/amd64/isel.c index 640bf12..a562441 100644 --- a/amd64/isel.c +++ b/amd64/isel.c @@ -78,9 +78,8 @@ fixarg(Ref *r, int k, Ins *i, Fn *fn) vgrow(&fn->mem, ++fn->nmem); memset(&a, 0, sizeof a); a.offset.type = CAddr; - a.offset.local = 1; n = stashbits(&fn->con[r0.val].bits, KWIDE(k) ? 8 : 4); - sprintf(buf, "fp%d", n); + sprintf(buf, "\"%sfp%d\"", T.asloc, n); a.offset.label = intern(buf); fn->mem[fn->nmem-1] = a; } |
