Kelvin Li

Results comments of Kelvin Li

> Does AIX's `malloc` return a null pointer for a zero-byte allocation size? That would explain all of this behavior. If so, then the few places in the runtime that...

> Thanks for checking. I think that you can fix this by altering the few code sites in the runtime that call `std::malloc` to allocate a single byte when the...

I dug out the investigation I did a while back. For this case, I think the problem is on the compiler side. The IR looks like: ``` define void @_QQmain()...

This issue is resolved by https://github.com/llvm/llvm-project/pull/149165.

On Linux/PPC, there are two compilation failures. They likely need to be `xfail`ed. ``` test-suite :: Fortran/gfortran/regression/gfortran-regression-execute-regression__c_kind_params_f90.test test-suite :: Fortran/gfortran/regression/gfortran-regression-execute-regression__large_real_kind_1_f90.test ``` On AIX/PPC, there are four compilation failures. The first...

Should the return of `selected_real_kind` also depend on the compiler? For example, with `selected_real_kind(0)` on x86_64, gfortran returns `4`, flang `2`. The behavior of flang causes failure in `numpy/f2py/tests/test_kind.py::TestKind::test_real`.

Still failing with 3.12. ``` ================================== test session starts =================================== platform aix -- Python 3.12.11, pytest-7.4.0, pluggy-1.6.0 -- /home/kli/myvenv/bin/python3.12 ... _________________________ TestFReturnCharacter.test_all_f90[s1] __________________________ self = name = 's1' @pytest.mark.xfail(IS_S390X, reason="callback...

This test is currently skipped on AIX. I think this test should be enabled on the platform if the `-Og` issue is resolved. Adding `AIX` on the list will work....

> It looks like [#26703](https://github.com/numpy/numpy/pull/26703) was concerned about passing flags, not the particular values. I think you change it from `-Og` to something that works on flang and on gfortran...

@ngoldbaum PR https://github.com/numpy/numpy/pull/29714. Thanks.