diff options
| author | Michael Forney <mforney@mforney.org> | 2019-02-21 22:44:44 -0800 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2019-03-03 22:45:39 -0800 |
| commit | 753bb3880e9e45df07e965246a6d2d610e0985f0 (patch) | |
| tree | 9b7768c76fcd75be7c927eb1ef5180e1951c0a67 /pkg/qbe/patch/0001-Increase-maximum-string-length.patch | |
| parent | 97a32b15ad96a127d7afdeddbfa67857e85957e4 (diff) | |
qbe: Update to latest git and add a few patches
Diffstat (limited to 'pkg/qbe/patch/0001-Increase-maximum-string-length.patch')
| -rw-r--r-- | pkg/qbe/patch/0001-Increase-maximum-string-length.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/pkg/qbe/patch/0001-Increase-maximum-string-length.patch b/pkg/qbe/patch/0001-Increase-maximum-string-length.patch new file mode 100644 index 00000000..563e6210 --- /dev/null +++ b/pkg/qbe/patch/0001-Increase-maximum-string-length.patch @@ -0,0 +1,28 @@ +From 9a5f78919d8d37684d653a8ef1da47a8bfd556a9 Mon Sep 17 00:00:00 2001 +From: Michael Forney <mforney@mforney.org> +Date: Thu, 31 Jan 2019 18:00:24 -0800 +Subject: [PATCH] Increase maximum string length + +The C standard requires that implementations support internal identifiers +at least 63 characters long, so QBE should allow for identifiers at +least that long. +--- + all.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/all.h b/all.h +index 24a1755..1364024 100644 +--- a/all.h ++++ b/all.h +@@ -31,7 +31,7 @@ typedef struct Dat Dat; + typedef struct Target Target; + + enum { +- NString = 32, ++ NString = 64, + NPred = 63, + NIns = 1 << 20, + NAlign = 3, +-- +2.20.1 + |
