summaryrefslogtreecommitdiff
path: root/libre/memtest86+/memtest86+-5.01-O0.patch
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-09-25 16:34:07 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2014-09-25 16:34:07 -0300
commit6567ada9dc1224f3c7a0ae4b6363a9232c51ba76 (patch)
tree7659c32f68f4a93a171add80b5e7e72acf101388 /libre/memtest86+/memtest86+-5.01-O0.patch
parentdb8298758ed6f881ffdd19c561d1f813c4a218ca (diff)
downloadabslibre-6567ada9dc1224f3c7a0ae4b6363a9232c51ba76.tar.gz
abslibre-6567ada9dc1224f3c7a0ae4b6363a9232c51ba76.tar.bz2
abslibre-6567ada9dc1224f3c7a0ae4b6363a9232c51ba76.zip
memtest86+: add new package to [libre]
Diffstat (limited to 'libre/memtest86+/memtest86+-5.01-O0.patch')
-rw-r--r--libre/memtest86+/memtest86+-5.01-O0.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/libre/memtest86+/memtest86+-5.01-O0.patch b/libre/memtest86+/memtest86+-5.01-O0.patch
new file mode 100644
index 000000000..62e4bbb66
--- /dev/null
+++ b/libre/memtest86+/memtest86+-5.01-O0.patch
@@ -0,0 +1,35 @@
+Index: memtest86+-5.01/Makefile
+===================================================================
+--- memtest86+-5.01.orig/Makefile
++++ memtest86+-5.01/Makefile
+@@ -12,7 +12,7 @@ FDISK=/dev/fd0
+ AS=as -32
+ CC=gcc
+
+-CFLAGS= -Wall -march=i486 -m32 -O1 -fomit-frame-pointer -fno-builtin \
++CFLAGS= -Wall -march=i486 -m32 -O0 -fomit-frame-pointer -fno-builtin \
+ -ffreestanding -fPIC $(SMP_FL) -fno-stack-protector
+
+ # This reverts a change introduced with recent binutils (post
+Index: memtest86+-5.01/io.h
+===================================================================
+--- memtest86+-5.01.orig/io.h
++++ memtest86+-5.01/io.h
+@@ -31,7 +31,7 @@
+ */
+
+ #define __OUT1(s,x) \
+-extern inline void __out##s(unsigned x value, unsigned short port) {
++static inline void __out##s(unsigned x value, unsigned short port) {
+
+ #define __OUT2(s,s1,s2) \
+ __asm__ __volatile__ ("out" #s " %" s1 "0,%" s2 "1"
+@@ -43,7 +43,7 @@ __OUT1(s##_p,x) __OUT2(s,s1,"w") : : "a"
+ __OUT1(s##c_p,x) __OUT2(s,s1,"") : : "a" (value), "id" (port)); SLOW_DOWN_IO; }
+
+ #define __IN1(s) \
+-extern inline RETURN_TYPE __in##s(unsigned short port) { RETURN_TYPE _v;
++static inline RETURN_TYPE __in##s(unsigned short port) { RETURN_TYPE _v;
+
+ #define __IN2(s,s1,s2) \
+ __asm__ __volatile__ ("in" #s " %" s2 "1,%" s1 "0"