*ping* - Re: [Patch, Fortran] PR56907 - do not 'pack' arrays passed to C_LOC
Tobias Burnus
burnus@net-b.de
Mon Apr 15 20:52:00 GMT 2013
*ping*
Also pending is the NO_ARGS_CHECK patch at:
http://gcc.gnu.org/ml/fortran/2013-04/msg00120.html
On April 10, Tobias Burnus wrote:
> Fortran 2008 supports C_LOC(array); if the argument is not simply
> contiguous, the current code adds a call to __gfortran_intrinsic_pack.
>
> The pack call shouldn't be there. Fortran 2008 demands that the actual
> argument is contiguous and intrinsic_pack copy creates a copy if the
> run-time check shows that the argument is not contiguous. Thus, it is
> not a wrong-code issue. However, for performance reasons, it makes
> sense to avoid the call __gfortran_intrinsic_pack.
>
> Build and regtested on x86-64-gnu-linux.
> OK for the trunk?
>
> Tobias
More information about the Fortran
mailing list