[all-commits] [llvm/llvm-project] b5440e: [libc] Fix cyclical dependency on errno matcher fo...

Joseph Huber via All-commits all-commits at lists.llvm.org
Sat Sep 23 06:59:52 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b5440e443a87e5519d6323bd942a272d328ae255
      https://github.com/llvm/llvm-project/commit/b5440e443a87e5519d6323bd942a272d328ae255
  Author: Joseph Huber <jhuber6 at vols.utk.edu>
  Date:   2023-09-23 (Sat, 23 Sep 2023)

  Changed paths:
    M libc/test/UnitTest/ErrnoSetterMatcher.h

  Log Message:
  -----------
  [libc] Fix cyclical dependency on errno matcher for NVPTX architectures

Summary:
The NVPTX backend cannot handle cyclical dependencies on global variable
initializers. That is, a global variable cannot be used to initialize or
reference another global variable inside of it. This situation was
encountered with the new errno tests. This patch simply replaces the
offending function with a constant version to break the dependency and
alllow the tests to run again.




More information about the All-commits mailing list