File 9f45a77f4.patch of Package nasm
commit 9f45a77f46829e666b35530939b9237cf978d4dc
Author: Cyrill Gorcunov <gorcunov@gmail.com>
Date: Sat Feb 10 00:40:46 2018 +0300
nasmlib: Drop pure_func attrib from seg_alloc
It not only reads static variable but writes it back as well.
https://bugzilla.nasm.us/show_bug.cgi?id=3392461
Reported-by: Michael Šimáček <msimacek@redhat.com>
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
commit 5eb1838b4d3752fd863d19442943983a2a5ee87c
Author: Cyrill Gorcunov <gorcunov@gmail.com>
Date: Sat Feb 10 00:33:41 2018 +0300
nasmlib: Drop unused seg_init
The helper has been eliminated in 2c4a4d5810d0a59b033a07876a2648ef5d4c2859
https://bugzilla.nasm.us/show_bug.cgi?id=3392461
Signed-off-by: Cyrill Gorcunov <gorcunov@gmail.com>
Index: nasm-2.13.03/include/nasmlib.h
===================================================================
--- nasm-2.13.03.orig/include/nasmlib.h
+++ nasm-2.13.03/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