summaryrefslogtreecommitdiff
path: root/numpy/core/setup_common.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2014-05-29 16:20:25 -0600
committerCharles Harris <charlesr.harris@gmail.com>2014-05-29 16:20:25 -0600
commit3d14321fcec97501a20d3e9ade92abb7c3055c0e (patch)
tree70fcd1302c6b103a471f6fc20b5f442db61ee3da /numpy/core/setup_common.py
parent3d88c07caa20699fd60f7f858b8d62345db5714b (diff)
parent848cd10bcc4b46be599de9cd3bd46d6b8859152e (diff)
downloadnumpy-3d14321fcec97501a20d3e9ade92abb7c3055c0e.tar.gz
Merge pull request #4692 from juliantaylor/fft-interrupt
BUG: fix crash when sending interrupt signal to fft functions
Diffstat (limited to 'numpy/core/setup_common.py')
-rw-r--r--numpy/core/setup_common.py21
1 files changed, 12 insertions, 9 deletions
diff --git a/numpy/core/setup_common.py b/numpy/core/setup_common.py
index e66b1653a..be5673a47 100644
--- a/numpy/core/setup_common.py
+++ b/numpy/core/setup_common.py
@@ -122,16 +122,19 @@ OPTIONAL_INTRINSICS = [("__builtin_isnan", '5.'),
("_mm_load_pd", '(double*)0', "emmintrin.h"), # SSE2
]
-# gcc function attributes
-# (attribute as understood by gcc, function name),
+# function attributes
+# tested via "int %s %s(void *);" % (attribute, name)
# function name will be converted to HAVE_<upper-case-name> preprocessor macro
-OPTIONAL_GCC_ATTRIBUTES = [('__attribute__((optimize("unroll-loops")))',
- 'attribute_optimize_unroll_loops'),
- ('__attribute__((optimize("O3")))',
- 'attribute_optimize_opt_3'),
- ('__attribute__((nonnull (1)))',
- 'attribute_nonnull'),
- ]
+OPTIONAL_FUNCTION_ATTRIBUTES = [('__attribute__((optimize("unroll-loops")))',
+ 'attribute_optimize_unroll_loops'),
+ ('__attribute__((optimize("O3")))',
+ 'attribute_optimize_opt_3'),
+ ('__attribute__((nonnull (1)))',
+ 'attribute_nonnull'),
+ ]
+
+# variable attributes tested via "int %s a" % attribute
+OPTIONAL_VARIABLE_ATTRIBUTES = ["__thread", "__declspec(thread)"]
# Subset of OPTIONAL_STDFUNCS which may alreay have HAVE_* defined by Python.h
OPTIONAL_STDFUNCS_MAYBE = ["expm1", "log1p", "acosh", "atanh", "asinh", "hypot",