[all-commits] [llvm/llvm-project] 72904a: [flang] Avoid global name conflict when BIND(C, NAM...

Peter Klausler via All-commits all-commits at lists.llvm.org
Mon Apr 25 09:32:51 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 72904a990c4d215a617ca77977babbeb45fc36dc
      https://github.com/llvm/llvm-project/commit/72904a990c4d215a617ca77977babbeb45fc36dc
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2022-04-25 (Mon, 25 Apr 2022)

  Changed paths:
    M flang/lib/Semantics/program-tree.cpp
    M flang/lib/Semantics/program-tree.h
    M flang/lib/Semantics/resolve-names.cpp
    M flang/test/Semantics/bind-c01.f90

  Log Message:
  -----------
  [flang] Avoid global name conflict when BIND(C,NAME=) is used

At the top level of program units in a source file, two subprograms
are allowed to have the same name if at least one of them has a
distinct interoperable binding name.  F18's symbol table requires
(most) symbols in a scope to have distinct names, though.  Solve
by using compiler-created names for the symbols of global scope
subprograms that have interoperable binding names.

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




More information about the All-commits mailing list