[all-commits] [llvm/llvm-project] debf39: [AArch64][llvm-jitlink] Fix two QNX cross-compile ...

Diksha via All-commits all-commits at lists.llvm.org
Mon Jun 29 11:39:21 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: debf392ce84868cec6b2dfece8940ba8e96acf89
      https://github.com/llvm/llvm-project/commit/debf392ce84868cec6b2dfece8940ba8e96acf89
  Author: Diksha <dgohlyan at nvidia.com>
  Date:   2026-06-29 (Mon, 29 Jun 2026)

  Changed paths:
    M llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
    M llvm/tools/llvm-jitlink/CMakeLists.txt

  Log Message:
  -----------
  [AArch64][llvm-jitlink] Fix two QNX cross-compile build failures (NFC) (#206290)

Fixes two build failures when cross-compiling LLVM for QNX
(aarch64-unknown-nto-qnx8.0.0).

gcc `-Wstringop-overread` false-positive in `AArch64InstructionSelector.cpp`:  
GCC's static analysis misreads the SmallVector fill constructor in 
`selectUnmergeValues()` as potentially reading `NumInsertRegs *
sizeof(Register)`
bytes from the 16-byte inline buffer of `SmallVector<Register, 4>`,
emitting:

```
warning: reading between 20 and 17179869180 bytes from a region of size 16 [-Wstringop-overread]
```

Replacing the constructor-then-move with `assign()` fills the already-live object in place,
which GCC can analyze correctly.

### 2. `llvm-jitlink` — undefined references to socket functions on QNX

On QNX, POSIX socket functions (`getaddrinfo`, `socket`, `connect`, `freeaddrinfo`, `gai_strerror`)
live in `libsocket` rather than libc. Without it the QNX cross-compile linker fails.
Mirrors the existing `target_link_libraries` pattern already present for SunOS and Haiku.

Assisted-by: Claude Sonnet 4.6 <noreply at anthropic.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list