[Python-modules-commits] [python-numpy] 08/12: disable asserts on ppc with broken malloc only longdouble affected will still work with softfaults
Sandro Tosi
morph at moszumanska.debian.org
Mon May 30 21:14:05 UTC 2016
This is an automated email from the git hooks/post-receive script.
morph pushed a commit to branch master
in repository python-numpy.
commit 3d9e219574f45700e073728dcc0cb1be4afe3b37
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 0fe63c1..34e7a74 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