This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, Fortran] Update c_funloc/c_f_procpointer for TS29113
- From: Mikael Morin <mikael dot morin at sfr dot fr>
- To: Tobias Burnus <burnus at net-b dot de>
- Cc: gcc patches <gcc-patches at gcc dot gnu dot org>, gfortran <fortran at gcc dot gnu dot org>
- Date: Tue, 31 Jul 2012 11:08:53 +0200
- Subject: Re: [Patch, Fortran] Update c_funloc/c_f_procpointer for TS29113
- References: <50114DC0.60903@net-b.de>
On 26/07/2012 16:01, Tobias Burnus wrote:
> TS29113 allows also non interoperable procedures with
> c_funloc/c_f_procpointer; hence, this patch allows them with -std=f2008ts:
>
> "The function C F PROCPOINTER from the intrinsic module ISO C BINDING
> has the restriction in ISO/IEC 1539-1:2010 that CPTR and FPTR shall not
> be the C address and interface of a noninteroperable Fortran procedure.
>
> "The function C FUNLOC from the intrinsic module ISO C BINDING has the
> restriction in ISO/IEC 1539-1:2010 that its argument shall be
> interoperable.
>
> "These restrictions are removed."
>
>
> Additionally, I changed "parameter" to "argument" and added a diagnostic
> that the first argument to c_f_pointer/c_f_procpointer is the correct
> one - before both accepted c_ptr and c_funptr.
>
> Build and regtested on x86-64-linux.
> OK for the trunk?
>
Yes, thanks
Mikael