Re: AW: AW: [Patch, fortran] PRs 89843 and 90022 - C Fortran Interop fixes.

2019-04-12 Thread Gilles Gouaillardet
dropped (unless mandatory). Cheers, Gilles On 4/12/2019 4:53 PM, Bader, Reinhold wrote: Dear Gilles, -Ursprüngliche Nachricht- Von: Gilles Gouaillardet Gesendet: Freitag, 12. April 2019 02:25 An: Bader, Reinhold ; Paul Richard Thomas ; fort...@gcc.gnu.org; gcc-patches Betreff: Re: AW

Re: AW: [Patch, fortran] PRs 89843 and 90022 - C Fortran Interop fixes.

2019-04-11 Thread Gilles Gouaillardet
Reinhold, Thanks for the insights ! That means there is currently an other issue since copy-in is performed even if the argument is declared as ASYNCHRONOUS. I gave the copy-in mechanism some more thoughts, and as a library developers, I can clearly see a need *not* to do that on a

Re: [Patch, fortran] PRs 89843 and 90022 - C Fortran Interop fixes.

2019-04-10 Thread Gilles Gouaillardet
Thanks Paul, I tried the patch and it does fix CFI_is_contigous() There is still an issue with INTENT(IN) For example, if we declare integer :: buf(0:1025,0:1025) and then call foo(buf(1:1024,1:1024) in which foo declares buf as INTENT(IN) You previously explained buf will be copied