[Python-modules-commits] [python-numpy] 08/11: disable asserts on ppc with broken malloc only longdouble affected will still work with softfaults
Sandro Tosi
morph at moszumanska.debian.org
Sun Aug 20 20:21:38 UTC 2017
This is an automated email from the git hooks/post-receive script.
morph pushed a commit to branch master
in repository python-numpy.
commit 214c56af4a982247c2dbbbe72ccf07ec1b2073cb
Author: Sandro Tosi <morph at debian.org>
Date: Mon Jan 11 23:51:23 2016 +0000
disable asserts on ppc with broken malloc only longdouble affected will still work with softfaults
Author: Julian Taylor <jtaylor.debian at googlemail.com>
---
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 397aaf2..297422f 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"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-numpy.git
More information about the Python-modules-commits
mailing list