$OpenBSD: patch-Cython_Utility_ModuleSetupCode_c,v 1.2 2018/08/06 21:57:52 juanfra Exp $

Index: Cython/Utility/ModuleSetupCode.c
--- Cython/Utility/ModuleSetupCode.c.orig
+++ Cython/Utility/ModuleSetupCode.c
@@ -669,8 +669,7 @@ static CYTHON_INLINE void * PyThread_tss_get(Py_tss_t 
 #ifndef CYTHON_SMALL_CODE
 #if defined(__clang__)
     #define CYTHON_SMALL_CODE
-#elif defined(__GNUC__) && (!(defined(__cplusplus)) || (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 4)))
-    // At least g++ 4.4.7 can generate crashing code with this option. (GH #2235)
+#elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))
     #define CYTHON_SMALL_CODE __attribute__((cold))
 #else
     #define CYTHON_SMALL_CODE
