[all-commits] [llvm/llvm-project] 09c544: [flang] Do not propagate BIND(C) from main entry t...

jeanPerier via All-commits all-commits at lists.llvm.org
Wed Sep 27 10:40:38 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 09c544e76012e7559a7be7fca34aeb8584da91a7
      https://github.com/llvm/llvm-project/commit/09c544e76012e7559a7be7fca34aeb8584da91a7
  Author: jeanPerier <jperier at nvidia.com>
  Date:   2023-09-27 (Wed, 27 Sep 2023)

  Changed paths:
    M flang/lib/Evaluate/characteristics.cpp
    A flang/test/Lower/HLFIR/bindc-entry-stmt.f90

  Log Message:
  -----------
  [flang] Do not propagate BIND(C) from main entry to ENTRY (#67554)

15.6.2.6 point 11/12/13 tells that entries do inherit the
RECURSIVE/PURE/ELEMENTAL aspects from the main entry, but nothing as
such is said for BIND(C). It seems each entry can independently have
BIND(C) or not.

Update characterization to not propagate this info in-between entries.

Add a lowering test for a tricky case of the character return where the
return ABI is different for the result with and without BIND(C), but the
results storage should be associated regardless of the ABI.




More information about the All-commits mailing list