about summary refs log tree commit diff
path: root/pkgs/applications/science/math/sage/patches/gap-element-crash.patch
blob: b5396e2b785432e70203ae9d92bfc23e5687f9d4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/src/sage/libs/gap/element.pyx b/src/sage/libs/gap/element.pyx
index b2b0681c052..b2e5807392c 100644
--- a/src/sage/libs/gap/element.pyx
+++ b/src/sage/libs/gap/element.pyx
@@ -35,6 +35,13 @@ from sage.structure.coerce cimport coercion_model as cm
 ### helper functions to construct lists and records ########################
 ############################################################################
 
+
+cdef extern from *:
+    """
+    #pragma GCC optimize("O1")
+    """
+
+
 cdef Obj make_gap_list(sage_list) except NULL:
     """
     Convert Sage lists into Gap lists