[Patch, Fortran] PR34079 - Fix returning of character bind(c) functions

Jerry DeLisle jvdelisle@verizon.net
Sun Nov 25 23:57:00 GMT 2007


Tobias Burnus wrote:
> :ADDPATCH fortran:
> 
> For
>   character(len=1,kind=c_char) FUNCTION func() bind(c)
> 
> the C equivalent is:
>   char func(void)
> 
> However, gfortran was passing the character as reference (older dump,
> still contained the char length arguments):
>    bar (__result, .__result, x, _x)
> 
> This patch fixes it.
> 
> Build and regression tested on x86-64. OK for the trunk?
> 
> Tobias
> 
Yes, OK for trunk.  Thanks!

Jerry



More information about the Fortran mailing list