[all-commits] [llvm/llvm-project] 63ed8a: [libc] Update supported riscv libs

Mikhail R. Gadelha via All-commits all-commits at lists.llvm.org
Thu Mar 16 02:18:07 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 63ed8ab4dbb37b1be481b3b3138f7fe1db1c649f
      https://github.com/llvm/llvm-project/commit/63ed8ab4dbb37b1be481b3b3138f7fe1db1c649f
  Author: Mikhail R. Gadelha <mikhail at igalia.com>
  Date:   2023-03-16 (Thu, 16 Mar 2023)

  Changed paths:
    M libc/config/linux/riscv64/entrypoints.txt
    M libc/config/linux/riscv64/headers.txt

  Log Message:
  -----------
  [libc] Update supported riscv libs

This patch removes some duplicated libs added to entrypoints.txt, adds
new libs supported to entrypoints.txt and updates header.txt

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


  Commit: fe99de31d949187fa9759de581041bb1aff460ea
      https://github.com/llvm/llvm-project/commit/fe99de31d949187fa9759de581041bb1aff460ea
  Author: Mikhail R. Gadelha <mikhail at igalia.com>
  Date:   2023-03-16 (Thu, 16 Mar 2023)

  Changed paths:
    M libc/config/linux/riscv64/entrypoints.txt
    M libc/config/linux/riscv64/headers.txt
    M libc/src/spawn/linux/posix_spawn.cpp

  Log Message:
  -----------
  [libc] Enable spawn lib in riscv

In this patch we add support for the spawn lib in riscv.

Only small changes were required, the biggest one was to use of dup3
instead of dup2, if the latter is not available. This follows our
implementation of dup2.

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


  Commit: 1990ce74dcbd5fbb5c71672b50730007be3dcd5e
      https://github.com/llvm/llvm-project/commit/1990ce74dcbd5fbb5c71672b50730007be3dcd5e
  Author: Mikhail R. Gadelha <mikhail at igalia.com>
  Date:   2023-03-16 (Thu, 16 Mar 2023)

  Changed paths:
    M libc/config/linux/riscv64/entrypoints.txt
    M libc/src/unistd/linux/fork.cpp
    M libc/test/src/unistd/syscall_test.cpp

  Log Message:
  -----------
  [libc] Enable __llvm_libc_syscall and fork

This patch enables the remaining calls from unistd.

The test cases had to be updated to:
1. Use SYS_symlinkat if SYS_symlink is not available
2. Use SYS_readlinkat if SYS_readlink is not available
3. Use SYS_unlinkat if SYS_unlink is not available
4. Use SYS_openat if SYS_open is not available

We also abort compilation if neither of the syscalls mentioned above are
available.

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


Compare: https://github.com/llvm/llvm-project/compare/3b1951aceb8c...1990ce74dcbd


More information about the All-commits mailing list