[CI] Check Linux premerge build dependencies with Ninja
Run missingdeps after the Linux build and tests to detect missing
dependency paths to generated files. Include the selected check targets
alongside all.
Assisted-by: Codex
[Flang][CMake] Fix header dependencies and binding header copies
Remove the unused parse-tree.h include from FIRBuilder's
Runtime/Intrinsics.cpp and include the OpenMP pass declarations in
LowerWorkdistribute.cpp. This removes their unnecessary dependencies on
the generated OpenACC headers and FIR transform pass declarations.
ISO_Fortran_binding.h is a checked-in header. Copying it with
configure_file makes CMake emit a phony rule for the input, which
Ninja's missingdeps mistakes for a generated file without a dependency
path to its consumers. Move both copies to build rules using a reusable
helper in AddFlang.cmake. Document the resource-directory copy used by
Flang lit and the prefix include copy used by llvm-test-suite. Build
them by default and before the Flang driver and flang-headers target.
Rebuilt both affected objects, checked their recorded dependencies, and
verified ninja -t missingdeps is clean. Tested initial copies,
incremental header updates, deleted-copy recovery, and paths with spaces
using Ninja, Unix Makefiles, and Ninja Multi-Config.
[2 lines not shown]
[bazel][mlir] Port 90c7abf29d59: Split out MemRefAllocationOpInterfaceImpl (#248960)
- Split MemRefAllocationOpInterfaceImpl out of MemRefTransforms to match
CMake and avoid a dependency cycle between MemRefTransforms and
BufferizationTransforms.
- Add :MemRefAllocationOpInterfaceImpl to BufferizationTransforms,
BufferizationToMemRef, and RegisterAllDialects.
[libc++] Introduce relocation primitives and use them in std::any
We can use relocation primitives in std::any to optimize trivially
relocatable objects. This turns moves, move assignments and swaps of
std::any holding trivially relocatable types like std::string into a
memcpy instead of a move construction followed by a destruction.
Relocation algorithms usable in containers will follow.
[libc++] Add benchmarks for std::any (#248660)
This adds a couple of benchmarks that can be used to demonstrate future
improvements from using trivial relocation. The benchmarks cover copy
and move construction, move assignment and swap for a few representative
payloads.
[Flang][CMake] Use source ISO_Fortran_binding.h in tests
Point the Flang lit include path at the source header instead of copying
it into the build tree during configuration. This also avoids Ninja
missingdeps treating the configure_file input as a generated phony
output.
Remove both build-tree copies and the unused HEADER_BINARY_DIR variable.
Keep both installed header locations, and document the source-header
option for llvm-test-suite runs with an uninstalled compiler.
Validated with a fresh CMake configuration, the ISO binding integration
test using existing compiler binaries, and both header installation
paths.
Assisted-by: Codex
[libc++] Rename __uninitialized_allocator_relocate to *_strong (#248236)
This algorithm provides the strong exception safety guarantee, which is
not what the relocation algorithms normally provide. To avoid confusion
with "normal" relocation algorithms, rename it.
This will provide a cleaner starting point to introduce a coherent set
of relocation algorithms.
clang: Remove HLSL checks for a preexisting noinline (#245857)
SetLLVMFunctionAttributesForDefinition only adds alwaysinline to
functions that are not already noinline. Nothing marks these functions
noinline before this point. The HLSL entry functions are marked
noinline, but they are created separately and never reach here.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
[InferAttrs] Do not mark qsort nofree (#248940)
`inferNonMandatoryLibFuncAttrs` adds `nofree` to every recognised
library function that is not free-like or realloc-like. `qsort` calls
the comparison function it is given, and that function may free memory
that existed before the call. Since #228033, GVN's loop load PRE relies
on `nofree` between the load and the reload, and it reloaded a pointer
after a `qsort` call whose comparator had freed it.
Return before the trailing `setDoesNotFreeMemory` for `qsort`, as for
`__cxa_throw`.
Fixes #248917.
Assisted-by: Claude Code
NAS-145480 / 27.1.0 / Change containers preferred pool when importing with another name (#20328)
https://github.com/truenas/middleware/pull/19461 repoints containers to
another pool when a pool is imported under new name.
This is a sound idea, but implementation is incomplete: `lxc.config`
prefered pool is not changed, and new container creation will fail until
the user changes that explicitly.
Bigger question: do we also want to do this for shares, tasks, VMs...?
NAS-145592 / 27.1.0 / Record whether the local administrator is set up (#20369)
Make it absolutely impossible to call `setup_local_administrator` twice.
Misleading default values were removed from `SystemGeneralModel`
definition. They are never used since the default row in the database
already exists in `initial.sql`.
NAS-145478 / 27.1.0 / Raise AppUpdate alert for custom app image updates (by stavros-k) (#20375)
Issue 1:
In https://github.com/truenas/middleware/pull/18084, we reduced alerts
to only catalog version bumps of major/minor (not patch). This also
dropped out any image updates for custom apps.
For custom (YAML), image updates is the only thing that "updates" them.
For custom (form), they also get template updates for the catalog.
So alerts are raised on:
| Change | Catalog app | Custom app (form, ix-app) | Custom app (YAML) |
|------------------------------------------------|-------------|---------------------------|-------------------|
| Catalog `version` major/minor bump (1.2 → 1.3) | Yes | Yes | N/A |
| Catalog `version` patch bump (1.2.3 → 1.2.4) | No | No | N/A |
| `app_version` change (e.g. 10.9.0 → 10.9.1) | Yes | No, `app_version`
is fake | N/A |
[18 lines not shown]
NAS-145604 / 27.1.0 / Fix alerts that should not run on BACKUP node (by themylogin) (#20378)
Original PR: https://github.com/truenas/middleware/pull/20377
Co-authored-by: themylogin <themylogin at gmail.com>
NAS-145602 / 27.1.0 / Update STIG FIPS provider version check to 3.5.9 (by ixhamza) (#20383)
[truenas/openssl-fips#2](https://github.com/truenas/openssl-fips/pull/2)
updates the FIPS provider to OpenSSL 3.5.9, so update `test_02_openssl`
to expect the new version.
The test now checks the `fips` entry in `openssl list -providers`
instead of searching the whole output for the version string. The base
and default providers report the system OpenSSL version, which Debian
trixie has already moved to 3.5.9. Once our mirror picks that up, the
old check would fail with FIPS disabled and pass with FIPS enabled even
without the FIPS provider.
Tested locally on a single-node 28.0.0 nightly with the HA marker
removed: passes with 3.5.9 and fails with 3.1.2 as expected.
## Testing
Jenkins runs (in progress):
- [STIG
[16 lines not shown]
[InferAttrs] posix_memalign may write errnomem (#248941)
glibc's `posix_memalign` sets `errno` to `ENOMEM` when the allocation
fails, and POSIX does not say that it leaves `errno` unchanged. #226943
gave it `memory(argmem: readwrite, inaccessiblemem: readwrite)`, so
InstCombine forwarded a store to `errno` across a failing call. Like the
other malloc-family functions (aa89092c0219), it may write `errnomem`.
Fixes #248921.
Assisted-by: Claude Code
[FunctionAttrs] Infer nofpclass top-down only when every use is a callee (#248939)
`addNoFPClassAttrsTopDown` intersected the `nofpclass` facts of every
call whose called function is `F`. A direct call that also passes `F` as
an argument is such a call, but `F` then escapes through that argument
and can be called, and its result used, at call sites the intersection
never sees. With `F` passed to itself and called with a NaN, the
argument was marked `nofpclass(nan ...)` and InstCombine folded the NaN
test to false.
Require each use of `F` to be the callee operand of a direct call, as
`addNoRecurseAttrsTopDown` does.
Fixes #248915.
Assisted-by: Claude Code
[clang][CUDA][HIP] Use host alignment for device globals
After #196505, the host and device compilation could cause the same global
variable different alignments. This could make them disagree on kernel
argument layout, and it made some device code slower.
Device compilation now use the host's alignment for global variables and the
host's large-array alignment for local arrays. Explicit alignment
attributes and alignof are unchanged. -fclang-abi-compat=22 recovers the
old rule on both sides.
AI assisted.
[BOLT][AArch64] Copy constant islands when relaxation fails (#240486)
With --clone-constant-island=0, an ADR or LDR literal in a non-simple
function that references another function's constant island has to be
relaxed, which fails if there is no adjacent NOP. We now clone the
referenced constand island for this non-simple function, and point the
reference at the cloned island instead.
Assisted-by: opus-5.5
NAS-145520 / 27.1.0 / Check SED password length before setup (#20382)
## Problem
Some new drives refuse a SED password that is shorter than a minimum
length. The Kioxia CM9 needs at least 16 bytes. When the global SED
password was shorter, pool creation failed with SETUP_FAILED. The real
cause went only to the log. Other disks in the same pool were set up
before the failure.
## Changes
- `DiskEntry.sed_initial_setup` now returns the cause of a failure with
the status. The pool operations and `disk.setup_sed` show this cause to
the user.
- `disk.query` returns `sed_min_password_length` when the `sed_status`
extra is set. `disk.details` also returns it. The value comes from the
same drive query as `sed_status`. It is 0 when the disk has no minimum.
It is null when the disk is not SED or its status could not be read.
[16 lines not shown]
[SPIR-V] Drop Initializer on Workgroup variables in OpenCL (#248665)
OpenCL SPIR-V Environment Specification forbids it (introduced in
https://github.com/KhronosGroup/OpenCL-Docs/pull/1638)
Report an error when a non-null initializer cannot be dropped
[X86] X86FixupSetCC - zero 16-bit MOVBE load destinations with xor instead of movzwl (#242676)
A 16-bit movbe load writes only the low 16 bits of its destination, so a
zero-extension of the result is selected as movbew + movzwl. Replace it
with
xor + movbew, as X86FixupSetCC already does for setcc.
The xor goes right before the load when EFLAGS is dead there. Otherwise
it
goes before the closest preceding instruction that defines EFLAGS,
unless that
instruction also reads EFLAGS (e.g. adc), in which case nothing changes.
On Zen 4 this removes one cycle from a load -> extend -> use dependency
chain
(7 -> 6 cycles per step; 8 -> 7 with EFLAGS live). No Intel numbers.
Part of #241363
The generic case (movzwl + rolw + movzwl) will be a separate patch.
Assisted-by: Claude Code (Anthropic)
[3 lines not shown]
[Sparc] Do not decode the reserved register conditions (#248749)
The register condition of movr, fmovr and the branches on a register
has two reserved values, 0 and 4. The disassembler took them anyway,
and the instruction printer then hit llvm_unreachable. Treat them as
invalid encodings, as GNU objdump does.
Assisted-by: Claude Opus 5.5
[clang][Sparc] Fix -mfsmuld and -mno-fsmuld (#248766)
The backend has a no-fsmuld feature, not fsmuld, so passing +fsmuld or
-fsmuld did nothing and -mno-fsmuld still used fsmuld. Pass -no-fsmuld
and +no-fsmuld instead.
Assisted-by: Claude Opus 5.5