aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Hess <thess@kitschensync.net>2018-07-07 16:11:48 -0400
committerTed Hess <thess@kitschensync.net>2018-07-07 16:15:02 -0400
commit328ddcf628119733c511ec6cda06f2f0cc8d19ae (patch)
tree2ea9974a09a157de1b74ffbeb69e6ad985076277
parent2d268c07108f3d53e0295a89ee34a87b26f4e829 (diff)
downloadupstream-328ddcf628119733c511ec6cda06f2f0cc8d19ae.tar.gz
upstream-328ddcf628119733c511ec6cda06f2f0cc8d19ae.tar.bz2
upstream-328ddcf628119733c511ec6cda06f2f0cc8d19ae.zip
toolchain/nasm: Backport GCC8 compatibility fix from upstream repo
Signed-off-by: Ted Hess <thess@kitschensync.net>
-rw-r--r--toolchain/nasm/patches/100-backport-upstream-GCC8-compatibility-fixes.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/toolchain/nasm/patches/100-backport-upstream-GCC8-compatibility-fixes.patch b/toolchain/nasm/patches/100-backport-upstream-GCC8-compatibility-fixes.patch
new file mode 100644
index 0000000000..a6c5027bec
--- /dev/null
+++ b/toolchain/nasm/patches/100-backport-upstream-GCC8-compatibility-fixes.patch
@@ -0,0 +1,15 @@
+--- a/include/nasmlib.h
++++ b/include/nasmlib.h
+@@ -188,11 +188,9 @@ int64_t readnum(char *str, bool *error);
+ int64_t readstrnum(char *str, int length, bool *warn);
+
+ /*
+- * seg_init: Initialise the segment-number allocator.
+ * seg_alloc: allocate a hitherto unused segment number.
+ */
+-void pure_func seg_init(void);
+-int32_t pure_func seg_alloc(void);
++int32_t seg_alloc(void);
+
+ /*
+ * many output formats will be able to make use of this: a standard