8000 Merge pull request #5167 from juliantaylor/rh5-miscompile · numpy/numpy@1b7712b · GitHub
[go: up one dir, main page]

Skip to content

Commit 1b7712b

Browse files
committed
Merge pull request #5167 from juliantaylor/rh5-miscompile
BUG: remove static from function
2 parents 5a5dc6e + 017969b commit 1b7712b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

numpy/core/src/multiarray/arraytypes.c.src

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4044,8 +4044,12 @@ datetime_dtype_metadata_clone(NpyAuxData *data)
40444044
/*
40454045
* Initializes the c_metadata field for the _builtin_descrs DATETIME
40464046
* and TIMEDELTA.
4047+
*
4048+
* must not be static, gcc 4.1.2 on redhat 5 then miscompiles this function
4049+
* see gh-5163
4050+
*
40474051
*/
4048-
static int
4052+
NPY_NO_EXPORT int
40494053
initialize_builtin_datetime_metadata(void)
40504054
{
40514055
PyArray_DatetimeDTypeMetaData *data1, *data2;

0 commit comments

Comments
 (0)
0