[Clang][AST] Fix extending an unsigned to signed in `ExprConstant.cpp` (#180563)
Fixes #154713.
The crash was due to `Index` sometimes being an unsigned 64-bit integer
which was being zero-extended to a signed 64-bit, triggering an
assertion failure in `APSInt::getExtValue`. This patch zero-extends it
to a unsigned 64-bit integer instead, since `HandleLValueVectorElement`
takes in a `uint64_t` anyway.
divert: Use a better source identifier for netisr_queue_src() calls
These opaque IDs are used by netisr to distribute work among threads.
The mapping function is simply SourceID % numthreads, so using socket
addresses as source IDs isn't going to distribute packets well due to
alignment.
Use the divert socket's generation number instead, as that suits this
purpose much better.
Reviewed by: zlei, glebius
MFC after: 1 week
Sponsored by: OPNsense
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D55537
[CIR][NFC] Fix unused variable warnings (#183604)
We have accumulated four places where variables were only being used in
asserts. This change silences the warnings for that.
Remove stale gw group "dirty" flag file
The gateway group "dirty" flag file is left behind when a gateway group
is added and removed without applying changes in between.
devel/libunistring: Update 1.4.1 => 1.4.2
Changelog:
- Prepare for 1.4.2 release.
* version.sh: Bump version number, date, gnulib version.
* README: Update version.
* NEWS: Update.
- Sync with gnulib.
* lib/unistring/cdefs.h: Update from gnulib/m4/gnulib-common.m4.
- (_GL_UNNAMED): New macro.
- (_UC_UNNAMED): Apply "New C macro _GL_UNNAMED".
- Make the generated <unistring/stdint.h> more usable in C++ mode.
* lib/Makefile.am (unistring/stdint.h): In C++ 11 or newer mode, just
use <cstdint>.
PR: 293435
[Clang] Add response file support to clang-linker-wrapper (#183598)
Summary:
This is needed on some platforms like Windows when the generated command
line becomes too large. This seems to be occurring in practice so we
need to support this. Uses the same basic support clang does.
No test because there isn't any current infrastructure to support it,
will likely be "tested" by ROCBLAS builds not failing anymore on
Windows.
net/samba422: opt out from Features/fortify.mk
[...]
Checking for freebsd sendfile support : not found
sendfile support not found but it was requested !
(complete log in /wrkdirs/usr/ports/net/samba422/work/samba-4.22.6/bin/config.log)
===> Script "configure" failed unexpectedly.
[...]
PR: 292391
net/samba423: opt out from Features/fortify.mk
[...]
Checking for freebsd sendfile support : not found
sendfile support not found but it was requested !
(complete log in /wrkdirs/usr/ports/net/samba423/work/samba-4.23.4/bin/config.log)
===> Script "configure" failed unexpectedly.
[...]
PR: 292392
net/samba420: opt out from Features/fortify.mk
[...]
Checking for freebsd sendfile support : not found
sendfile support not found but it was requested !
(complete log in /wrkdirs/usr/ports/net/samba420/work/samba-4.20.8/bin/config.log)
===> Script "configure" failed unexpectedly.
[...]
PR: 292390
net/samba416: opt out from Features/fortify.mk
[...]
sendfile support not found but it was requested !
(complete log in /wrkdirs/usr/ports/net/samba416/work-default/samba-4.16.11/bin/config.log)
===> Script "configure" failed unexpectedly.
[...]
PR: 292388
net/samba419: opt out from Features/fortify.mk
[...]
Checking for freebsd sendfile support : not found
sendfile support not found but it was requested !
(complete log in /wrkdirs/usr/ports/net/samba419/work/samba-4.19.9/bin/config.log)
===> Script "configure" failed unexpectedly.
[...]
PR: 292389
[Metal][HLSL] Add support for dumping reflection (#181258)
The Metal Shader converter can output shader reflection information into
a JSON file. This connects the -Fre flag (DXC's flag for reflection) to
the Metal Shader Converter tool step to produce the JSON file. As a
temporary state the -Fre flag will error when used without the -metal
flag.
This is required to address
https://github.com/llvm/offload-test-suite/issues/452
Add remaining patterns for floating-point flag matches (#173912)
As in title. Only `reassoc` pattern was supplied -- for completeness all
should be supplied. Make FastMathFlag ctor public as well.
ValueTracking: Special case fmul by llvm.amdgcn.trig.preop (#183373)
This is another instance of the logic from #183159. If we know
one source is not-infinity, and the other source is less than or
equal to 1, this cannot overflow. Special case llvm.amdgcn.trig.preop,
as a substitute for proper range tracking. This almost enables pruning
edge case handling in trig function implementations, if not for the
recursion depth limit (but that's a problem for another day).
java/openjdk25: Update to OpenJDK 25.0.2
Update to track upstream version 25.0.2, with fixes for FreeBSD.
See the upstream release notes for details on what has changed since
version 25.0.1:
https://www.oracle.com/java/technologies/javase/25-0-2-relnotes.html
In addition to the above, this release includes the following patch,
scheduled for JDK 26 by upstream.
JDK-8371637: allocateNativeInternal sometimes return incorrectly aligned
memory
This is because this patch affects systems using jemalloc specifically,
like FreeBSD does, but I feel it's too long time to wait until the next
LTS release before making it available on FreeBSD.
Reviewed by: fuz (mentor)
[3 lines not shown]
sysutils/syslog-ng: Update to 4.11.0
Submitted by: Peter Czanik (CzP) <peter.czanik at oneidentity.com>
Balabit (a OneIdentity company) / syslog-ng upstream
[AMDGPU] Fix encoding of inline constants in v_fma_mix_f32_bf16 (#183487)
BF16 source operands use F32 inline constant values, so set OP_SEL to
select the high half of the constant, since BF16 encoding matches the
high 16 bits of F32 encoding. This behaviour is different from F16
source operands which use F16 constant values in the low 16 bits.
Fixes: #183337