tnt-ham: fix build with GCC 14, correct doc paths in PLIST
GCC 14 turns implicit-int and implicit-function-declaration into
hard errors by default, which breaks this K&R-era codebase. Demote
them back to warnings via CFLAGS until the code is fixed properly.
Correct PLIST doc file locations: the build installs documentation
under share/tnt/doc/, not share/doc/tnt/.
[lldb] Remove uses of ConstString in FileSpec methods (#206851)
After this, FileSpec only uses ConstString for storage. In a subsequent
commit, I will change FileSpec's storage.
Revert "[PGO][ICP] Prevent indirect call promotion to functions with incompatible target features" (#208079)
Reverts llvm/llvm-project#192142
Now that https://github.com/llvm/llvm-project/pull/205113 has landed, we
will not inline functions with incompatible target features, even if the
callee is marked `alwaysinline`, so we can promote calls to such
functions while also removing the extra complexity from ICP.
[mlir][acc][flang] Add type sizing utilities (#208074)
Add a general acc utility for computing the size and alignment of a
type. It works for simple scalar types as well as nested and aggregate
types like arrays, tuples, and structures.
Because some types come from other dialects, the utility can hand those
off to a specialized helper that understands them. This lets sizing work
seamlessly even for mixed types, such as an aggregate whose members come
from a different dialect.
Add a Fortran-specific helper so Fortran types are sized correctly,
falling back to the general utility for everything else.
Include unit tests covering a range of scenarios, including scalars,
arrays, aggregates, and mixed-dialect types.
Linux: fix zfs_write() infinite loop on unfaultable buffer
On Linux, zfs_write() copies from the source buffer with page faults
disabled while the transaction is open, relying on
zfs_uio_prefaultpages() to make the pages resident beforehand. When
dmu_write_uio_dbuf() returns EFAULT, the retry path only subtracts
the bytes consumed so far from the prefault accounting. On zero
progress pfbytes does not change, the "pfbytes < nbytes" check never
triggers another prefault, and the loop retries the same failing
copy. If the buffer can never be faulted in again, e.g. the owning
process was torn down while a thread was in pwrite(2), that thread
spins unkillably at 100% CPU holding the file range lock, blocking
every other accessor of the file.
This is a regression from commit b0cbc1aa9a ("Use big transactions
for small recordsize writes."), which dropped the unconditional
re-prefault the EFAULT path had carried since commit 779a6c0bf6
("deadlock between mm_sem and tx assign in zfs_write() and page
fault"). Restore those semantics by resetting pfbytes on EFAULT, as
[15 lines not shown]
Reland: [LFI][X86] Add X86 LFI target and system instruction rewrites (#207892)
Reintroduction of #189569 using the MCRegisterClass accessor API, which
was recently modified and caused a build error when the previous PR
was merged since it was not rebased onto the latest commit.
[VPlan] Use StepVector without operands, VPBuilder in C++ tests (NFC) (#208075)
Update unit tests construction VScale for VPInstructions without
operands to use StepVector where possible. When VScale is needed,
construct with VPBuilder. Also update constructing other recipes in same
function to use VPBuilder, for consistency.
Split off from approved https://github.com/llvm/llvm-project/pull/207541
[lldb] Support MS style `struct`/`class` in C++ name parser (#196525)
If a type is declared as a `class` or a `struct` is part of the mangled
name in the Microsoft ABI. This is also reflected in the demangled name.
There, it shows up before the qualified name. For example, you could
have `class ns1::ns2::MyClass`. It will show up like this in return
types and function/template arguments.
This adds a check in `CPlusPlusNameParser::ParseFullNameImpl` for these
cases.
[Support] Add missing include for MacOS defines (#208065)
https://github.com/llvm/llvm-project/pull/142733 removed several
includes, including
llvm/Support/ProgramStack.h. This was indirectly including headers that
defined
PRIO_DARWIN_THREAD and PRIO_DARWIN_BG.
Add back sys/resource.h to define them locally.
Update misc/CodeWhale to v.0.87
rquickjs-sys pre-generated bindings for NetBSD targets are identical to
those for Linux, so just copy them. One might bindgen them one of these days
dpbox: update to 6.1.1
Upstream rolled the version-string change (patch-bj) and the fixes
for the optimization-triggered crash into the v6.1.1 tag, so both
patches are removed. patch-ba (-O0 workaround) is no longer needed:
the crash root cause was undefined behavior in format specifiers,
fixed upstream, and the package now builds at the stock -O2/-O3.
www/freenginx-devel: update: 1.31.2 -> 1.31.3
Build of the substitutions filter third-party module is temporarily disabled.
Sponsored by: tipi.work
<ChangeLog>
*) Feature: additional checks are now used during variable substitution,
including during execution of the ngx_http_rewrite_module directives,
to prevent buffer overruns in case of errors in the code.
*) Bugfix: if the "auth_request_set" directive or regular expression
named captures were used to change prefix variables, such as
"$http_...", corresponding variables became empty in other parts of
the configuration.
*) Bugfix: changing the $limit_rate and $args variables with the
"auth_request_set" directive or regular expression named captures
[25 lines not shown]
Update vfs module reference in middleware
In order to simplify maintenance of truenas-specific ZFS-specific
recycle bin code, we've forked the module to truenas_recycle. This
commit updates the name assigned to it in middleware code that
generates the smb.conf file.
(cherry picked from commit d2293150174c615a3c07166b133bf26123f4e52e)
Update vfs module reference in middleware
In order to simplify maintenance of truenas-specific ZFS-specific
recycle bin code, we've forked the module to truenas_recycle. This
commit updates the name assigned to it in middleware code that
generates the smb.conf file.
(cherry picked from commit d2293150174c615a3c07166b133bf26123f4e52e)
[libc++][NFC] Rename workflow file for libc++ A/B performance comparisons (#208070)
I want to introduce another workflow that allows running benchmarks on
historical commits of libc++ for LNT submission, so having an
unambiguous name is desirable.
18152 fold /usr/lib/pci/pcieb into pcieadm
18151 pcieb private ioctls should validate FREAD/FWRITE
Portions contributed by: Robert Mustacchi <rm at fingolfin.org>
Reviewed by: Robert Mustacchi <rm at fingolfin.org>
Reviewed by: C Fraire <cfraire at me.com>
Approved by: Dan McDonald <danmcd at edgecast.io>
[flang][OpenMP] Support lowering of metadirective (part 3)
Enable lowering of metadirectives that resolve to a loop-associated
variant such as `do`, `simd`, `parallel do`, and `do simd`. The
associated DO construct is made available to the selected variant so the
existing OpenMP loop lowering can process it. A standalone metadirective
uses the following sibling DO, and a begin/end metadirective uses the
first substantive evaluation nested in its block.
For example, when the `vendor(llvm)` selector matches, the `parallel do`
variant is lowered together with the DO loop that follows it:
```fortran
!$omp metadirective when(implementation={vendor(llvm)}: parallel do)
do i = 1, n
y(i) = a*x(i) + y(i)
end do
```
[33 lines not shown]