Remove unused MachineBlockFrequencyInfo::isIrrLoopHeader. NFC (#220841)
The only consumer used to be PGOInstrumentation, which now reads it
through the IR-level BlockFrequencyInfo.
[Clang][Cygwin] Set default DWARF version to 4 (#220738)
Cygwin distribution's GDB doesn't work with DWARF 5.
Do the same as MinGW (6cf64b2d2858dc93c3ec93438bdaca2807847e9b).
[AMDGPU] Price the packed form of a vector of i1 (#217327)
A vector of i1 has no packed form on this target: every element lives in its
own mask, so building an integer from the elements takes a select, a shift and
an or per element. The generic cost model charges about one instruction per
element for that work, and nothing at all for the reverse.
Price the bitcast in both directions, and the add and the xor reduction over a
vector of i1. Measured instruction counts from gfx900 to gfx1201 give 4 per
element to pack a mask and 3 to unpack it.
Assisted-by: Claude Opus
www/phpbb3: Fix fetch
download.phpbb.com started rejecting requests carrying the libfetch user
agent with HTTP 403. This breaks fetching the distfile everywhere, the
package building cluster included.
The distfile itself is unchanged and its recorded checksum still
matches, and there is no newer upstream release. Work around the block by
passing --user-agent to fetch.
Sponsored by: Netzkommune GmbH
(cherry picked from commit 99c172676dc11da3c35a576dd9a8a7c8aecb3410)
databases/mysql-shell: Fix build of the bundled MySQL 9.7.1 sources
Add two includes that no longer come in transitively: <type_traits>
in libs/mysql/gtid/tag_plain.h and <cstdlib> in router/src/harness/
src/stdx/filesystem.cc.
Reported by: pkg-fallout
Sponsored by: Netzkommune GmbH
[lldb][test] Fix RegisterTypeBuilder tests on Arm 32-bit (#220591)
By setting the target triple to x86_64 Linux (same as the fake
platform), so we are always using the x86_64 types.
Fixes #218725 / bc2a795648a3b3412fb833db4f879dae3d604275.
There were two failure points:
* Pointer sizes, easily fixed by using sizeof(void*).
* Bfloat type being valid but not having a size. I think that's because
for it to have a size on Arm you'd have to have the bf16 feature
enabled.
And I could work around both of those but it would make the tests more
complex for a detail we're not actually concerned about here.
Also it's confusing to see a triple set in one thing and not used in
another, so we should make that
consistent regardless.
py-xopen: updated to 2.1.0
v2.1.0 (2026-06-03)
Zstandard is now supported by using compression.zstd, which is part of the Python standard library since Python 3.14. On Python versions before 3.14, backports.zstd is used instead.
Zstandard support is no longer optional. That is, it is no longer necessary to install xopen with the zstd extra. The reason Zstandard was optional was that python-zstandard wheels are quite large, but backports.zstd wheels are much smaller.
Dropped support for Python 3.8 and 3.9
Started supporting Python 3.13 and 3.14 (including free-threaded)
[AArch64][Vectorizer] Enable scalable factor-3 interleaving (#217370)
AArch64 can lower scalable `llvm.vector.interleave3` and
`llvm.vector.deinterleave3` intrinsics. Allow the vectorizer to cost
these operations when the interleave factor is supported.
Factor-3 lowering requires each input vector to have a known minimum
size of 384 bits, so retain an invalid cost for smaller scalable vector types.
[clang-tidy] Add `TypedefInheritAnonTagConfig` to `readability-identifier-naming` (#213772)
`typedef enum {} MyEnum;` is currently checked against `TypedefCase`
even though the identifier names the enum itself. With the new option
enabled (default false), such a typedef or type alias is checked against
the style configured for that tag kind instead. If none is configured,
the typedef style still applies.
Closes https://github.com/llvm/llvm-project/issues/213665
---------
Co-authored-by: EugeneZelenko <eugene.zelenko at gmail.com>
[libc] Add getpid syscall wrapper for Linux (#220595)
Adds an internal `getpid` Linux system call wrapper
(`LIBC_NAMESPACE::linux_syscalls::getpid`) in
`src/__support/OSUtil/linux/syscall_wrappers/getpid.h` and registers the
corresponding CMake header library target.
This follows the established pattern of existing syscall wrappers in
this directory to allow internal utilities to query the process ID via
`SYS_getpid` in freestanding environments.
Update existing getpid to use it.
Assisted-by: Automated tooling, human reviewed.
Add information for sensors on V215/V245.
Add patches for incorrect values on SB2500-S dbcool and V215/V245 adt7462sm.
Update the gpio settings for the additional timeout property in pcagpio and
pcf8574.
Thanks to Ken Wellsch for testing and investigating sensors on his V215.
hastd: Fix crash on empty message
A HAST message can be empty, in which case ebuf_add_tail() does nothing
and ebuf_data() returns NULL because the size of the ebuf is zero, but
hast_proto_recv_hdr() asserts that the return value is not NULL,
resulting in an immediate crash if hastctl or hastd receive an empty
message. This is trivially reproducable by running `hastctl status` or
`hastctl role init` (as the rc script does prior to stopping hastd).
To avoid this, don't try to grow the ebuf or receive additional data
if the header size is zero.
PR: 298085
MFC after: 3 days
Reviewed by: kevans, gjb
Differential Revision: https://reviews.freebsd.org/D59306
hastd: Clean up the ebuf code
Rename the members of struct ebuf to match their function, replace
bcopy() with memcpy(), add comments explaining what each function does.
Reviewed by: kevans, emaste
Differential Revision: https://reviews.freebsd.org/D59310
[flang-rt] Fix runtime/environment.cpp compilation on FreeBSD (#219705)
`runtime/environment.cpp` doesn't compile on FreeBSD:
```
runtime/environment.cpp:115:47: error: use of undeclared identifier 'RTLD_DEFAULT'
115 | auto envpp{reinterpret_cast<char ***>(dlsym(RTLD_DEFAULT, "environ"))};
| ^~~~~~~~~~~~
```
`<dlfcn.h>` needs to be included.
Tested on `x86_64-pc-freebsd15.1` and `x86_64-pc-linux-gnu`.
fsck_msdosfs: add a test for reconnecting on volumes larger than 4 GiB
Build a 4.5 GiB FAT32 image whose LOST.DIR cluster sits exactly 4 GiB above
the single cluster of a PAYLOAD.BIN, so that truncating the offset of the
former to 32 bits yields the offset of the latter, then inject a lost cluster
chain and let fsck_msdosfs(8) reconnect it.
The test asserts both halves of the bug fixed in the previous commit: that
PAYLOAD.BIN's cluster is unchanged, and that a second pass no longer reports
the chain as lost, which it only stops doing once the directory entry reaches
the real LOST.DIR.
newfs_msdos(8) -C only calls ftruncate(2) and nothing outside the reserved
area, the FATs and a handful of clusters is ever written, so the image stays
sparse and costs about 2 MiB on disk.
The geometry is read back out of the BPB rather than assumed, so
newfs_msdos(8) stays free to lay the file system out differently; the test
fails with a clear message if the volume ever becomes too small to hold a
[3 lines not shown]
Split out the logic for handling indicators, alerts and timeouts, rather
than having special values in the properties.
Set envsys critical state for alerts when the sensor value isn't the default.
Add comments to explain the logic.
fsck_msdosfs: fix 32-bit overflow computing the LOST.DIR offset
reconnect() computed the byte offset of the LOST.DIR cluster in 32-bit
arithmetic and widened the result only on assignment:
lfoff = (lfcl - CLUST_FIRST) * boot->ClusterSize
+ boot->FirstCluster * boot->bpbBytesPerSec;
cl_t is u_int32_t and ClusterSize is u_int, so both products wrap modulo
2**32. Once LOST.DIR's cluster lies past the 4 GiB mark, lfoff aliases
the offset exactly 4 GiB below it, which on such a volume is ordinary
file data.
That offset is used for both the read and the write: reconnect() reads a
cluster of file data, scans it in 32-byte steps for a leading SLOT_EMPTY
or SLOT_DELETED byte, which arbitrary data readily provides, stores the
new directory entry in that slot, and writes the cluster back to the
same wrong place. Thirty-two bytes of an unrelated file are silently
replaced by a directory entry, and since that entry never reaches the
[14 lines not shown]
[ComplexDeinterleaving] Fix miscompile with fma/fmuladd sign tracking (#220602)
This PR fixes a miscompile where the sign of the product in a `fma` was
also applied to the addend resulting in an incorrect `fcmla` angle.