[all-commits] [llvm/llvm-project] 1062c1: [flang] Prevent IR name clashes between BIND(C) an...

jeanPerier via All-commits all-commits at lists.llvm.org
Wed Sep 20 01:00:41 PDT 2023


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

  Changed paths:
    M flang/include/flang/Common/Fortran.h
    M flang/lib/Optimizer/Transforms/ExternalNameConversion.cpp
    M flang/lib/Semantics/check-declarations.cpp
    A flang/test/Semantics/bind-c14.f90

  Log Message:
  -----------
  [flang] Prevent IR name clashes between BIND(C) and external procedures (#66777)

Defining a procedure with a BIND(C, NAME="...") where the binding label
matches the assembly name of a non BIND(C) external procedure in the
same file causes a failure when generating the LLVM IR because of the
assembly symbol name clash.

Prevent this crash with a clearer semantic error.




More information about the All-commits mailing list