From 905575d9e6779d795e3f014e99c76c3189b38283 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Thu, 25 Apr 2019 11:30:05 -0700 Subject: Allow stack allocations larger than SHRT_MAX * 4 bytes Slots are stored as `int` in Fn, so use the same type in Tmp. Rearrange the fields in Tmp slightly so that sizeof(Tmp) stays the same (at least on 64-bit systems). --- all.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'all.h') diff --git a/all.h b/all.h index 6053a1a..e53e290 100644 --- a/all.h +++ b/all.h @@ -279,11 +279,11 @@ struct Alias { struct Tmp { char name[NString]; - uint bid; /* id of a defining block */ Use *use; uint ndef, nuse; + uint bid; /* id of a defining block */ uint cost; - short slot; /* -1 for unset */ + int slot; /* -1 for unset */ short cls; struct { int r; /* register or -1 */ -- cgit 1.4.1