This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]