diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2018-07-22 22:36:22 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2018-08-03 08:58:02 +0200 |
commit | 15a8ec240d1e63c629ee1127691b0aaa2eacc738 (patch) | |
tree | 3269392c617370b2d60dae3b36e5ff552e38204f | |
parent | 9be8b3d3e8eee1fbf6415e9da76f66fda58ac906 (diff) | |
download | cython-15a8ec240d1e63c629ee1127691b0aaa2eacc738.tar.gz |
Replace GCC's attribute optimize("Os") by the better supported and similar (cold).0.28.5
Closes #2494.
-rw-r--r-- | Cython/Utility/ModuleSetupCode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Cython/Utility/ModuleSetupCode.c b/Cython/Utility/ModuleSetupCode.c index 7b9d245c7..2ced47e4c 100644 --- a/Cython/Utility/ModuleSetupCode.c +++ b/Cython/Utility/ModuleSetupCode.c @@ -671,7 +671,7 @@ static CYTHON_INLINE void * PyThread_tss_get(Py_tss_t *key) { #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) - #define CYTHON_SMALL_CODE __attribute__((optimize("Os"))) + #define CYTHON_SMALL_CODE __attribute__((cold)) #else #define CYTHON_SMALL_CODE #endif |