File: 0006-disable-asserts-on-ppc-with-broken-malloc-only-longd.patch

package info (click to toggle)
python-numpy 1%3A1.12.1-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 23,732 kB
  • ctags: 19,262
  • sloc: ansic: 146,995; python: 98,088; cpp: 1,112; makefile: 425; f90: 307; sh: 173; fortran: 169; perl: 58
file content (29 lines) | stat: -rw-r--r-- 996 bytes parent folder | download | duplicates (2)
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
28
29
From 4b26915f32eec3afa476d678bc7831ab7b1899c1 Mon Sep 17 00:00:00 2001
From: Sandro Tosi <morph@debian.org>
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

Author: Julian Taylor <jtaylor.debian@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 9a5c300..124d57c 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"