LLVM/project ed962a6libcxx/include streambuf, libcxx/test/std/input.output/stream.buffers/streambuf/streambuf.cons copy.pass.cpp

[libc++] Implement LWG4023 (#87513)

This patch implements LWG4023 by adding explicit assertions for the
added preconditions and also fixes a few tests that were violating these
preconditions.
DeltaFile
+68-0libcxx/test/std/input.output/stream.buffers/streambuf/streambuf.protected/streambuf.get.area/setg.assert.pass.cpp
+57-0libcxx/test/std/input.output/stream.buffers/streambuf/streambuf.protected/streambuf.put.area/setp.assert.pass.cpp
+8-6libcxx/test/std/input.output/stream.buffers/streambuf/streambuf.protected/streambuf.assign/swap.pass.cpp
+8-6libcxx/test/std/input.output/stream.buffers/streambuf/streambuf.cons/copy.pass.cpp
+8-6libcxx/test/std/input.output/stream.buffers/streambuf/streambuf.protected/streambuf.assign/assign.pass.cpp
+6-0libcxx/include/streambuf
+155-181 files not shown
+156-197 files

LLVM/project 182f5e9libcxx/include __availability

[libc++] Reformulate availability in terms of LLVM releases (#87563)

To make it easier to maintain the availability macros for both upstream
developers and vendors, this patch reformulates availability macros as a
function of the upstream LLVM release that a feature was introduced in.
This way, upstream developers can easily use the appropriate LLVM
version, and vendors can simply fill in the platform version(s) in which
a LLVM version landed.
DeltaFile
+239-202libcxx/include/__availability
+239-2021 files

LLVM/project 584a9bflibcxx/include variant

[libc++] Reorganize the std::variant macros (#89419)

std::variant uses multiple macros to generate special member functions.
These macros were very subtle to read because of e.g. a macro argument
appearing in the middle of a macro-ized class definition. In conjunction
with clang-format, this could lead to extremely subtle macro expansions
that were not easy to parse for humans.

By adding semi-colons in macro expansions in judicious places,
clang-format does a better job and makes these macros a lot easier to
read.

As a drive-by fix, I noticed that several of these functions were
missing HIDE_FROM_ABI annotations, so I added them.
DeltaFile
+59-45libcxx/include/variant
+59-451 files

LLVM/project fcf8667.github new-prs-labeler.yml

[libc++] Tag PRs that modify libc++ workflows appropriately (#89798)

DeltaFile
+1-0.github/new-prs-labeler.yml
+1-01 files

FreeBSD/ports b5d0242lang/gleam Makefile.deps

lang/gleam: Remove errant line from Makefile.deps
DeltaFile
+0-1lang/gleam/Makefile.deps
+0-11 files

LLVM/project 2c50f8fllvm/lib/Target/AMDGPU AMDGPU.td, llvm/test/CodeGen/AMDGPU mad_64_32.ll

[AMDGPU] Include missing FeatureMADIntraFwdBug in gfx11-generic (#89936)

It seems like this happened because #79460 moved this from
`FeatureISAVersion11_Common` to `FeatureISAVersion11_0_Common` while
#76955 was being reviewed.
DeltaFile
+1-0llvm/test/CodeGen/AMDGPU/mad_64_32.ll
+1-0llvm/lib/Target/AMDGPU/AMDGPU.td
+2-02 files

LLVM/project d51a17fllvm/lib/CodeGen/SelectionDAG DAGCombiner.cpp

[DAG] visitORCommutative - pull out repeated SDLoc(). NFC.
DeltaFile
+7-6llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+7-61 files

FreeBSD/src a2eaf1csbin/dumpon dumpon.c

dumpon: fix set but not used variable

Signed-off-by: inkeliz <inkeliz at inkeliz.com>

Reviewed by:    markj
MFC after:      1 week
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1178

(cherry picked from commit 464b1ab216d5f78054626524addf99f5c622da96)
DeltaFile
+10-2sbin/dumpon/dumpon.c
+10-21 files

FreeBSD/src eff68b6bin/mv mv.c

mv: Set file flags after setting file times

Some file flags prevent modification of file times, so they should be
set later.  This matches NetBSD's behaviour.

Reviewed by:    markj
MFC after:      1 week
Pull Request:   https://github.com/freebsd/freebsd-src/pull/1138

(cherry picked from commit 428f86fd2ff1fd2b073d556fac273c8c7f457376)
DeltaFile
+6-5bin/mv/mv.c
+6-51 files

FreeBSD/src 32004d8sys/fs/nfsserver nfs_nfsdkrpc.c

nfsserver: Rate-limit messages about requests from unprivileged ports

If access from unreserved ports is disabled, then a remote host can
cause an NFS server to log a message by sending a packet.  This is
useful for diagnosing problems but bad for resiliency in the case where
the server is being spammed with a large number of rejected requests.

Limit prints to once per second (racily).

Reviewed by:    rmacklem, emaste
MFC after:      1 week
Differential Revision:  https://reviews.freebsd.org/D44819

(cherry picked from commit b7e4666d7b69c22699a9299687018a892a5dad5b)
DeltaFile
+14-4sys/fs/nfsserver/nfs_nfsdkrpc.c
+14-41 files

LLVM/project d7cdd29llvm/include/llvm/IR IntrinsicsRISCV.td, llvm/lib/Target/RISCV RISCVInstrInfoVPseudos.td

[𝘀𝗽𝗿] initial version

Created using spr 1.3.6-beta.1
DeltaFile
+170-0llvm/test/CodeGen/RISCV/rvv/commutable.ll
+27-42llvm/test/CodeGen/RISCV/regalloc-last-chance-recoloring-failure.ll
+12-20llvm/test/CodeGen/RISCV/rvv/rvv-peephole-vmerge-vops.ll
+17-15llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
+8-9llvm/test/CodeGen/RISCV/rvv/copyprop.mir
+6-7llvm/include/llvm/IR/IntrinsicsRISCV.td
+240-932 files not shown
+245-948 files

LLVM/project c17d2dcllvm/lib/Target/RISCV RISCVInstrInfoVPseudos.td RISCVInstrInfo.cpp, llvm/test/CodeGen/RISCV/rvv commutable.ll

[𝘀𝗽𝗿] changes to main this commit is based on

Created using spr 1.3.6-beta.1

[skip ci]
DeltaFile
+173-0llvm/test/CodeGen/RISCV/rvv/commutable.ll
+12-10llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td
+5-0llvm/lib/Target/RISCV/RISCVInstrInfo.cpp
+190-103 files

LLVM/project 4a12589llvm/utils/LLVMVisualizers llvm.natvis

Fix NATVIS for llvm::PointerIntPair

We don't need to cast to the type of the template argument because it
is always an unsigned number. When passed an enumeration type, MSVC's
debug formatter would get confused, so this fixes issues like looking
at a llvm::PointerIntPair<const ContentCache *, 3, CharacteristicKind>
such as what's used in SrcMgr::FileInfo.
DeltaFile
+3-3llvm/utils/LLVMVisualizers/llvm.natvis
+3-31 files

OPNSense/core b139e33src/opnsense/mvc/app/models/OPNsense/Base/FieldTypes BaseListField.php

mvc/model - BaseListField replace array_map+strval for loop with cast to preserve execution time. The mapping with strval seems to be rather slow, a simple cast seems to be roughly 4 times faster.
DeltaFile
+5-2src/opnsense/mvc/app/models/OPNsense/Base/FieldTypes/BaseListField.php
+5-21 files

LLVM/project 697fcd0llvm/lib/Transforms/Utils SimplifyCFG.cpp, llvm/test/Transforms/SimplifyCFG UnreachableEliminate.ll

[SimplifyCFG] Handle `llvm.assume` in `passingValueIsAlwaysUndefined` (#89929)

See the following example:
```
define i32 @test(i32 %cond) {
entry:
  switch i32 %cond, label %default [
    i32 0, label %case0
    i32 1, label %case1
    i32 2, label %case2
  ]

case0:
  br label %exit

case1:
  br label %exit

case2:

    [18 lines not shown]
DeltaFile
+226-0llvm/test/Transforms/SimplifyCFG/UnreachableEliminate.ll
+7-0llvm/lib/Transforms/Utils/SimplifyCFG.cpp
+233-02 files

LLVM/project ee73651llvm/lib/ExecutionEngine/Orc MemoryMapper.cpp, llvm/lib/ExecutionEngine/Orc/TargetProcess ExecutorSharedMemoryMapperService.cpp

[z/OS] Implement shared memory handling for JIT (#89933)

Fix 'use of undeclared identifier' build errors for shm_ functions on
z/OS by implementing the functionality using shmget(), shmat(), and
shmdt(). Use the BLAKE3 hash to map the name of the shared memory to a
key.

---------

Co-authored-by: Kai Nacke <kai.peter.nacke at ibm.com>
DeltaFile
+32-0llvm/lib/ExecutionEngine/Orc/MemoryMapper.cpp
+31-0llvm/lib/ExecutionEngine/Orc/TargetProcess/ExecutorSharedMemoryMapperService.cpp
+63-02 files

OpenBSD/ports v7XkWyqgraphics/libjxl Makefile, graphics/libjxl/pkg PLIST

   graphics/libjxl: enable the mime plugin which installs mime/packages/image-jxl.xml
VersionDeltaFile
1.13+3-2graphics/libjxl/Makefile
1.5+2-0graphics/libjxl/pkg/PLIST
+5-22 files

NetBSD/pkgsrc 36xkVIVdoc CHANGES-2024

   doc: Updated security/passphrase to 1.8.1
VersionDeltaFile
1.2692+2-1doc/CHANGES-2024
+2-11 files

OPNSense/core f652640src/opnsense/www api.php

MVC: deal with explicit buffering on Phalcon side

The start() and finish() methods in Phalcon start and close an output buffer respectively. If we clear this buffer prematurely, as is needed for streaming data, we must handle the exception that pops up as a result of Phalcon trying to close the buffer again. In cases where such control over the output is needed, we must also assume that the headers have already been sent, so silence the output in this case to prevent a PHP fatal error.
DeltaFile
+11-1src/opnsense/www/api.php
+11-11 files

NetBSD/pkgsrc Os7XaW6security/passphrase Makefile distinfo

   passphrase: update to version 1.8.1

   Changelog:

   add man-dir option, in case it's not "share/"
VersionDeltaFile
1.14+5-9security/passphrase/Makefile
1.8+4-4security/passphrase/distinfo
+9-132 files

NetBSD/pkgsrc W7ROw89ham/uhd distinfo, ham/uhd/patches patch-lib_usrp_mpmd_mpmd__image__loader.cpp patch-lib_usrp_x300_x300__image__loader.cpp

   uhd: fix boost fallout. From upstream.
VersionDeltaFile
1.1+41-0ham/uhd/patches/patch-lib_usrp_mpmd_mpmd__image__loader.cpp
1.1+18-0ham/uhd/patches/patch-lib_usrp_x300_x300__image__loader.cpp
1.1+16-0ham/uhd/patches/patch-lib_usrp__clock_octoclock_octoclock__image__loader.cpp
1.39+4-1ham/uhd/distinfo
+79-14 files

HardenedBSD/src d825063bin/sync sync.8, lib/libsys gettimeofday.2

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+29-1bin/sync/sync.8
+24-1lib/libsys/gettimeofday.2
+1-0tools/build/checkstyle9.pl
+54-23 files

HardenedBSD/src 7fe9543sys/sys link_elf.h types.h, tools/tools/mwl/mwlstats mwlstats.c

Merge branch 'freebsd/14-stable/main' into hardened/14-stable/master
DeltaFile
+1-1sys/sys/link_elf.h
+1-1sys/sys/types.h
+1-1tools/tools/mwl/mwlstats/mwlstats.c
+3-33 files

HardenedBSD/src 1e409b1sys/sys types.h link_elf.h, tools/tools/mwl/mwlstats mwlstats.c

Merge branch 'freebsd/13-stable/main' into hardened/13-stable/master
DeltaFile
+1-1sys/sys/types.h
+1-1sys/sys/link_elf.h
+1-1tools/tools/mwl/mwlstats/mwlstats.c
+3-33 files

HardenedBSD/ports e763bc9lang/gleam distinfo Makefile.deps, security/vuxml/vuln 2024.xml 2020.xml

Merge branch 'freebsd/main' into hardenedbsd/main
DeltaFile
+555-0security/vuxml/vuln/2024.xml
+222-240www/mattermost-webapp/pkg-plist
+189-177lang/gleam/distinfo
+94-87lang/gleam/Makefile.deps
+40-30security/vuxml/vuln/2020.xml
+43-0www/mattermost-server/pkg-plist
+1,143-53422 files not shown
+1,232-59128 files

OpenBSD/ports QgX2rjomail/neomutt distinfo Makefile

   update to neomutt-20240425
VersionDeltaFile
1.61+2-2mail/neomutt/distinfo
1.94+1-1mail/neomutt/Makefile
+3-32 files

NetBSD/src J5iBEnqdistrib/common Makefile.bootcd, distrib/common/bootimage Makefile.installimage

   remove redundant kernels and floppies from the space-starved i386 ISO
VersionDeltaFile
1.12+16-1distrib/i386/cdroms/installcd/Makefile
1.11+3-2distrib/common/bootimage/Makefile.installimage
1.48+2-2distrib/common/Makefile.bootcd
+21-53 files

FreeBSD/ports 1707c0adatabases/mongodb50 Makefile

databases/mongodb50: enable non-AVX CPUs by default

By popular demand as this port is used by net-mgmt/unifi8.

I couldn't find any information on the internet that the binary really
does something which requires AVX. For example this discussion:
https://github.com/turnkeylinux/tracker/issues/1724

PR:     277990
Requested by:   glebius@
DeltaFile
+2-2databases/mongodb50/Makefile
+2-21 files

HardenedBSD/ports 1707c0adatabases/mongodb50 Makefile

databases/mongodb50: enable non-AVX CPUs by default

By popular demand as this port is used by net-mgmt/unifi8.

I couldn't find any information on the internet that the binary really
does something which requires AVX. For example this discussion:
https://github.com/turnkeylinux/tracker/issues/1724

PR:     277990
Requested by:   glebius@
DeltaFile
+2-2databases/mongodb50/Makefile
+2-21 files

HardenedBSD/ports d6bef73databases/mongodb60 distinfo Makefile

databases/mongodb60: update to 6.0.15

changes:
https://www.mongodb.com/docs/manual/release-notes/6.0/#6.0.15---apr-18--2024
DeltaFile
+3-3databases/mongodb60/distinfo
+1-1databases/mongodb60/Makefile
+4-42 files