For the MALLOC and FREE Cray pointer-related intrinsics, we used to emit calls to _gfortran_malloc and _gfortran_free, which would in turn call the libc routines. The attached patch makes us directly emit the calls to the BUILT_IN_MALLOC and BUILT_IN_FREE.
Committed as revision 227311 after regtesting on x86_64-apple-darwin15. I have updated the wiki ABI cleanup page. FX
z.diff
Description: Binary data