1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
From: Julian Taylor <jtaylor.debian@googlemail.com>
Date: Mon, 11 Jan 2016 23:51:23 +0000
Subject: Disable asserts on ppc with broken malloc
Only longdouble affected will still work with softfaults
---
numpy/_core/src/multiarray/lowlevel_strided_loops.c.src | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/numpy/_core/src/multiarray/lowlevel_strided_loops.c.src b/numpy/_core/src/multiarray/lowlevel_strided_loops.c.src
index 1299e55..bd5208c 100644
--- a/numpy/_core/src/multiarray/lowlevel_strided_loops.c.src
+++ b/numpy/_core/src/multiarray/lowlevel_strided_loops.c.src
@@ -7,6 +7,13 @@
*
* See LICENSE.txt for the license.
*/
+#if defined(__powerpc__) & !defined(__powerpc64__)
+#ifndef NDEBUG
+// disable asserts malloc broken
+// https://sourceware.org/bugzilla/show_bug.cgi?id=6527
+#define NDEBUG
+#endif
+#endif
#define PY_SSIZE_T_CLEAN
#include <Python.h>
|