[all-commits] [llvm/llvm-project] fe9409: [flang][RFC] Change the interface for non-BIND(C) ...

PeixinQiao via All-commits all-commits at lists.llvm.org
Fri Nov 4 07:21:02 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fe9409b9fad352bbad7064f6c8be1e1ef0b12586
      https://github.com/llvm/llvm-project/commit/fe9409b9fad352bbad7064f6c8be1e1ef0b12586
  Author: Peixin Qiao <qiaopeixin at huawei.com>
  Date:   2022-11-04 (Fri, 04 Nov 2022)

  Changed paths:
    M flang/lib/Lower/CallInterface.cpp
    M flang/test/Lower/call-by-value.f90

  Log Message:
  -----------
  [flang][RFC] Change the interface for non-BIND(C) CPTR type with VALUE attribute

When the `type(c_ptr/c_funptr)` argument has value attribute in non-BIND(C)
procedure, it is passed by VALUE in gfortran. ifort does not do this. Be
consistent with gfortran.

Fix #58756.

Reviewed By: PeteSteinfeld, jeanPerier

Differential Revision: https://reviews.llvm.org/D137237




More information about the All-commits mailing list