Commit 15a8ec24 authored by Stefan Behnel's avatar Stefan Behnel

Replace GCC's attribute optimize("Os") by the better supported and similar (cold).

Closes #2494.
parent 9be8b3d3
...@@ -671,7 +671,7 @@ static CYTHON_INLINE void * PyThread_tss_get(Py_tss_t *key) { ...@@ -671,7 +671,7 @@ static CYTHON_INLINE void * PyThread_tss_get(Py_tss_t *key) {
#define CYTHON_SMALL_CODE #define CYTHON_SMALL_CODE
#elif defined(__GNUC__) && (!(defined(__cplusplus)) || (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 4))) #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) // 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 #else
#define CYTHON_SMALL_CODE #define CYTHON_SMALL_CODE
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment