File: 0001-Disable-asserts-on-ppc-with-broken-malloc.patch

package info (click to toggle)
numpy 1%3A2.2.4%2Bds-1.2
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 83,420 kB
  • sloc: python: 248,499; asm: 232,365; ansic: 216,874; cpp: 135,657; f90: 1,540; sh: 938; fortran: 558; makefile: 414; sed: 139; xml: 109; java: 92; perl: 79; cs: 54; javascript: 53; objc: 29; lex: 13; yacc: 9
file content (27 lines) | stat: -rw-r--r-- 890 bytes parent folder | download | duplicates (3)
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>