LLVM/project c1c557blldb/bindings/lua CMakeLists.txt, lldb/bindings/python CMakeLists.txt

[lldb] Support dynamically loading ScriptInterpreter plugins (#189718)

Add support for building the script interpreter plugins as shared
libraries, controlled by the `LLDB_ENABLE_DYNAMIC_SCRIPTINTERPRETERS`
CMake variable. This allows the plugins, rather than `liblldb`, to link
against their respective dependencies such as Python and Lua, which has
several benefits:

1. It makes it possible to gracefully handle the Python or Lua
dependencies not being present, instead of crashing.
2. It enables programmatically deciding which Python or Lua library to
load.
3. Combined with (2), this opens up a path towards not statically
linking with Python at all, which is required in order to load the LLDB
module in a different Python interpreter (at least this is a hard
requirement on Darwin due to two-level namespaces and install names).

This PR completes #183791
DeltaFile
+49-13lldb/source/Plugins/ScriptInterpreter/Python/CMakeLists.txt
+33-5lldb/source/Plugins/ScriptInterpreter/Lua/CMakeLists.txt
+11-3lldb/bindings/python/CMakeLists.txt
+11-3lldb/bindings/lua/CMakeLists.txt
+7-5lldb/source/API/CMakeLists.txt
+7-1lldb/unittests/ScriptInterpreter/Python/CMakeLists.txt
+118-302 files not shown
+130-318 files

LLVM/project 3a49e45clang/include/clang/Basic DiagnosticSemaKinds.td, clang/lib/Sema SemaType.cpp

[OpenCL] Add warning for reserved 'long long' type (#196002)

'long long' is a reserved data type in all versions of OpenCL C.

Relates to https://github.com/intel/intel-graphics-compiler/issues/405
DeltaFile
+10-4clang/lib/Sema/SemaType.cpp
+12-0clang/test/SemaOpenCL/longlong.cl
+3-0clang/include/clang/Basic/DiagnosticSemaKinds.td
+1-1clang/test/SemaOpenCL/fdeclare-opencl-builtins.cl
+1-1clang/test/Misc/languageOptsOpenCL.cl
+0-1clang/test/SemaSPIRV/BuiltIns/subgroup-errors.c
+27-76 files

FreeBSD/src 58811b0usr.sbin/jail config.c

jail: open the fstab files with fopen("re")

This protects against accidentally leaking them past fork()+exec()
in future refactorings.

PR:             295052
Reviewed by:    kevans
DeltaFile
+1-1usr.sbin/jail/config.c
+1-11 files

FreeBSD/src 276d9b8usr.sbin/jail config.c

jail: avoid leaking jail config fds to exec.* hooks

The jail(8) command must not leave parsed configuration files open
since the file descriptors will be leaked to child processes
including the untrusted exec.start or exec.stop hooks.

While fopen() doesn't provide direct access to O_CLOEXEC, it does
provide access to FD_CLOEXEC via "e" in the mode string which
provides the desired defense in depth against leaking file descriptors
into exec.* hooks since those always execve() into a shell.

Jail configuration is potentially sensitive and some hooks execute from
within the jail context, leaving some opening for the jail to exfiltrate
information about the host environment.

(Commit message wordsmithed by kevans)

PR:             295052
Reviewed by:    kevans
MFC after:      3 days
DeltaFile
+4-1usr.sbin/jail/config.c
+4-11 files

FreeBSD/ports 17c2ef8mail/archiveopteryx Makefile distinfo, mail/archiveopteryx/files patch-core__md5.cpp patch-server_tlsthread.cpp

mail/archiveopteryx: Update to latest git

archiveopteryx has not received an official release in many years and
many fixes have been accumulating. I have traditionally published the
git version under the mail/archiveopteryhx-devel port, but many
improvements have happened that aox users should be getting by default.
I'm working with upstream to get a new release finally made.

While here, correct the LICENSE which is actually PostgreSQL, not MIT.
DeltaFile
+0-33mail/archiveopteryx/files/patch-core__md5.cpp
+17-15mail/archiveopteryx/Makefile
+0-11mail/archiveopteryx/files/patch-server_tlsthread.cpp
+0-11mail/archiveopteryx/files/patch-Jamrules
+0-11mail/archiveopteryx/files/patch-db__postgres.cpp
+3-2mail/archiveopteryx/distinfo
+20-831 files not shown
+21-847 files

FreeBSD/ports 992875email/archiveopteryx-devel Makefile pkg-plist, mail/archiveopteryx-devel/files archiveopteryx.in patch-Jamsettings

mail/archiveopteryx-devel: Retire this port

It is recommended to use mail/archiveopteryx instead.
DeltaFile
+0-68mail/archiveopteryx-devel/files/archiveopteryx.in
+0-66mail/archiveopteryx-devel/Makefile
+0-58mail/archiveopteryx-devel/files/patch-Jamsettings
+0-45mail/archiveopteryx-devel/files/patch-Jamfile
+0-25mail/archiveopteryx-devel/files/pkg-message.in
+0-24mail/archiveopteryx-devel/pkg-plist
+0-2867 files not shown
+1-32913 files

FreeBSD/src 3348fa7tests/sys/netinet6/frag6 frag6_19.sh

Revert "Skip sys.netinet6.frag6.frag6_19.frag6_19 in CI"

Per [siva@'s comment on the PR][1], this testcase now passes cleanly in CI.

PR:     274941
MFC after:      1 week

[1]: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=274941#c6

This reverts commit 86e87c3bd1b377242aafe7e2222ae17ca0be96d9.
DeltaFile
+0-3tests/sys/netinet6/frag6/frag6_19.sh
+0-31 files

FreeBSD/src efa8679sys/contrib/openzfs/config kernel-dentry-alias.m4, sys/contrib/openzfs/lib/libzfs libzfs_mnttab.c

zfs: merge openzfs/zfs at a12c6ed62

Notable upstream pull request merges:
 #18473 b8d959640 Fix rare cksum errors after rebuild
 #18477 e78a51dd6 Fix off-by-one in PREVIOUSLY_REDACTED handler that drops
                  last block
 #18482 d5099c330 Initialize vr_last_txg for rebuild
 #18483 872f01019 Zstd: rework ZSTD_isError symbol renaming
 #18489 366b1f9a3 Fix long POSIX_FADV_DONTNEED for single block files

Obtained from:  OpenZFS
OpenZFS commit: a12c6ed62fcd06093b95616515e4716b0b0bc038
DeltaFile
+118-0sys/contrib/openzfs/tests/zfs-tests/tests/functional/redacted_send/redacted_max_blkid.ksh
+107-0sys/contrib/openzfs/tests/zfs-tests/cmd/libzfs_mnttab_cache_check.c
+45-25sys/contrib/openzfs/lib/libzfs/libzfs_mnttab.c
+32-0sys/contrib/openzfs/config/kernel-dentry-alias.m4
+26-0sys/contrib/openzfs/tests/zfs-tests/tests/functional/libzfs/libzfs_mnttab_cache.ksh
+16-3sys/contrib/openzfs/module/os/linux/zfs/zfs_ctldir.c
+344-2841 files not shown
+522-10747 files

LLVM/project f1d39dbclang/lib/Headers __clang_cuda_runtime_wrapper.h

[Clang][NVPTX] fix `no member named 'this_cluster'` (#187039)

Fixes #184754

Adds a macro based on which `this_cluster` function is defined.
DeltaFile
+4-0clang/lib/Headers/__clang_cuda_runtime_wrapper.h
+4-01 files

LLVM/project 017a0e7llvm/lib/Target/AMDGPU SIInstructions.td, llvm/test/CodeGen/AMDGPU packed-fp32.ll

[AMDGPU] Add fcanonicalize + fneg selection pattern for v2f32 (#196188)
DeltaFile
+4-4llvm/test/CodeGen/AMDGPU/packed-fp32.ll
+6-1llvm/lib/Target/AMDGPU/SIInstructions.td
+10-52 files

OpenBSD/ports tq8hYSznet/qbittorrent Makefile.inc, net/qbittorrent/qbittorrent distinfo

   update to qbittorrent 5.2.0
VersionDeltaFile
1.43+2-2net/qbittorrent/qbittorrent/distinfo
1.43+2-2net/qbittorrent/qbittorrent-nox/distinfo
1.54+2-1net/qbittorrent/Makefile.inc
1.2+1-1net/qbittorrent/qbittorrent/patches/patch-CMakeLists_txt
1.3+2-0net/qbittorrent/qbittorrent-nox/pkg/PLIST
1.2+1-1net/qbittorrent/qbittorrent-nox/patches/patch-CMakeLists_txt
+10-76 files

LLVM/project 3bd61c6llvm/include/llvm/Support JSON.h

formatting
DeltaFile
+2-2llvm/include/llvm/Support/JSON.h
+2-21 files

LLVM/project 90f7145utils/bazel/llvm-project-overlay/lldb BUILD.bazel

[Bazel] Fixes 7e74c78 (#196197)

This fixes 7e74c78ea342c0a7dda249c054085e824b77016e.

Co-authored-by: Google Bazel Bot <google-bazel-bot at google.com>
DeltaFile
+1-0utils/bazel/llvm-project-overlay/lldb/BUILD.bazel
+1-01 files

FreeBSD/src 18626fatests/sys/netinet6/frag6 frag6_07.sh

Unskip test sys.netinet6.frag6.frag6_07.frag6_07

This is now consistently passing with 100+ consecutive runs.

Signed-off-by: Siva Mahadevan <me at svmhdvn.name>
PR:             244170
MFC after:      3 days
Sponsored by: The FreeBSD Foundation
(cherry picked from commit 681e9d3e391f30a512c523514f69a63c9782a901)
DeltaFile
+0-3tests/sys/netinet6/frag6/frag6_07.sh
+0-31 files

LLVM/project ad7d6fcllvm/include/llvm/Support JSON.h

Revert "[ASan][JSON] Unpoison memory before its reuse (#79065)"

This reverts commit c416b2efe89c11db593fe8041c366e0cb63d4eeb.
DeltaFile
+1-14llvm/include/llvm/Support/JSON.h
+1-141 files

LLVM/project f5efc08lldb/source/Commands Options.td

Make it clear that log enable's output file is per channel not per category (#196178)

It is natural to try:

```
log enable -f file1 lldb step
log enable -f file2 lldb process

```
or whatever, and then be surprised that all the logs end up in
`file2`... The help on `log enable`'s `-f` option didn't specify what
you were setting the file for. This PR just changes the help text to be
clear about the current state of things.
DeltaFile
+2-1lldb/source/Commands/Options.td
+2-11 files

FreeBSD/src 1c4f255tests/sys/net if_lagg_test.sh

tests/if_lagg_test: unskip 'witness' testcase

This testcase passes consistently (in 100+ runs) now.

Signed-off-by:  Siva Mahadevan <me at svmhdvn.name>
PR:             244163, 251726
MFC after:      3 days
Sponsored by:   The FreeBSD Foundation

(cherry picked from commit 7a83fedc116d827cc9c6d8e049b785f1d7b68dcd)
DeltaFile
+0-3tests/sys/net/if_lagg_test.sh
+0-31 files

LLVM/project 637bd86llvm/include/llvm/ADT FunctionExtras.h

Revert "[ASan][ADT] Don't scribble with ASan (#79066)"

This reverts commit 51a11f1c44b7bd7655687471d8c8912afb637efc.
DeltaFile
+2-5llvm/include/llvm/ADT/FunctionExtras.h
+2-51 files

LLVM/project 1d2a123lldb/source/Commands CommandObjectCommands.cpp CommandObjectTarget.cpp, lldb/source/Expression Materializer.cpp

[lldb] Fix misconstructed FromErrorStringWithFormatv format strings (#196189)

Fix mistakes in `FromErrorStringWithFormatv` format strings. Uses
https://github.com/llvm/llvm-project/pull/195974

---------

Co-authored-by: Jonas Devlieghere <jonas at devlieghere.com>
DeltaFile
+2-3lldb/source/Commands/CommandObjectCommands.cpp
+2-2lldb/source/Expression/Materializer.cpp
+1-1lldb/source/Commands/CommandObjectTarget.cpp
+5-63 files

LLVM/project 623dc4dclang/lib/CodeGen CodeGenModule.cpp CodeGenModule.h, clang/test/CodeGenSYCL sycl-module-id.cpp kernel-caller-entry-point.cpp

[clang][SYCL] Emit "sycl-module-id" function attribute (#195965)

Attach the "sycl-module-id" LLVM function attribute to SYCL device
functions that are candidates for entry points in device-code splitting.
The attribute value is the module identifier (translation unit name),
which clang-sycl-linker uses to group kernels by translation unit when
splitting device code.

The attribute is emitted at two sites:

1. SYCL kernel caller functions (spir_kernel) are synthesized by
EmitSYCLKernelCaller and do not go through EmitFunction, so the
attribute is set directly after SetSYCLKernelAttributes.

2. sycl_external function definitions go through
SetLLVMFunctionAttributesForDefinition; the attribute is added there
when SYCLIsDevice and SYCLExternalAttr are present.

Both sites call the new CodeGenModule::addSYCLModuleIdAttr helper.

Co-authored-by: Claude
DeltaFile
+27-0clang/test/CodeGenSYCL/sycl-module-id.cpp
+13-0clang/lib/CodeGen/CodeGenModule.cpp
+7-0clang/lib/CodeGen/CodeGenModule.h
+3-3clang/test/CodeGenSYCL/kernel-caller-entry-point.cpp
+1-0clang/lib/CodeGen/CodeGenSYCL.cpp
+51-35 files

LLVM/project db86c25llvm/docs CodingStandards.rst

add rule for nested statements
DeltaFile
+18-11llvm/docs/CodingStandards.rst
+18-111 files

LLVM/project 41c3779llvm/lib/Target/AMDGPU/AsmParser AMDGPUAsmParser.cpp, llvm/test/MC/AMDGPU gfx1250_asm_vop3_err.s

[AMDGPU] Validate forced lit64() on VOP3 instructions (#196171)

Lit64 cannot be used with VOP3* but we did not validate it
in case it can be encoded as lit32, but forced with the
operand modifier.
DeltaFile
+23-8llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
+5-0llvm/test/MC/AMDGPU/gfx1250_asm_vop3_err.s
+28-82 files

LLVM/project 1661a23llvm/docs CodingStandards.rst

[RFC][Docs] Clarify brace omission for single-line bodies

Update the Coding Standards brace guidance to emphasize that braces should be
omitted only for simple bodies that do not wrap across multiple physical lines.
DeltaFile
+22-9llvm/docs/CodingStandards.rst
+22-91 files

LLVM/project 3776d8dclang/cmake/caches Fuchsia.cmake

[Fuchsia] Enable OpenCSD by default for Fuchsia (#195194)

Pass LLVM_ENABLE_OPENCSD and OPENCSD_ROOT through the Fuchsia stage 1
cache.
DeltaFile
+2-0clang/cmake/caches/Fuchsia.cmake
+2-01 files

LLVM/project 020b0a0llvm/include/llvm/ADT DenseMap.h

Revert "[DenseMap] Add memory barrier for sanitizers in getInlineBuckets/getLargeRep (#183457)" (#196143)

Revert #183457 and fixup #193695 as they are not needed after #194208.

Related issue #182720.

This reverts commit b5ac484470b9ceda96addcbc946f9ded4c5ef972.
This reverts commit 8d5b74db2d8f54da2609d18040504153c1afe5df.
DeltaFile
+0-11llvm/include/llvm/ADT/DenseMap.h
+0-111 files

LLVM/project 7e74c78lldb/cmake/modules LLDBConfig.cmake, lldb/include/lldb/Host Config.h.cmake

[lldb] Add LLDB_ENABLE_DYNAMIC_SCRIPTINTERPRETERS option (#196110)

Add a CMake option that will gate building the script interpreter
plugins as separate shared libraries, and expose it to C++ via
lldb/Host/Config.h.

The option defaults to OFF and currently has no consumers; subsequent
patches wire up the plugin, binding, and test build to use it.

Because dynamic plugins resolve lldb_private symbols against liblldb at
runtime, enabling this option implies LLDB_EXPORT_ALL_SYMBOLS. The
default for LLDB_EXPORT_ALL_SYMBOLS now follows
LLDB_ENABLE_DYNAMIC_SCRIPTINTERPRETERS, and a FATAL_ERROR is raised if
the user explicitly disables symbol export while requesting dynamic
plugins.

Extracted from #189718 for easier reviewing.
DeltaFile
+6-1lldb/cmake/modules/LLDBConfig.cmake
+2-0lldb/include/lldb/Host/Config.h.cmake
+8-12 files

LLVM/project 8acf74flldb/source/Plugins/ExpressionParser/Clang IRForTarget.cpp

[lldb] Partially support ConstantPtrAuth in IRForTarget::UnfoldConstant (#195899)

IRForTarget aims to make generated LLVM IR relocatable. This is because
LLDB JITs and executes code in an environment where the location/value
of something may not be known ahead of runtime.

My motivation here is ObjC constant strings. They are generally emitted
as global variables with a constant global initializer. On arm64e, these
global initializers may have a ptrauth constant as the address
discriminator. These can be safely skipped because address
discriminators encode information about the signed value, they don't
actually need to be unfolded.

In this commit I explicitly do not handle the non-address discriminator
scenario. As I work through the arm64e test suite, I may come back to
implement this if I find it is needed.
DeltaFile
+10-0lldb/source/Plugins/ExpressionParser/Clang/IRForTarget.cpp
+10-01 files

LLVM/project 4988b3allvm/lib/Analysis ValueTracking.cpp, llvm/test/CodeGen/AMDGPU srem64.ll urem64.ll

[ValueTracking] Extend computeConstantRange for add/sub, sext/zext/trunc

Recursively compute operand ranges for add/sub and propagate ranges
through sext/zext/trunc.
For add/sub, the computed range is intersected with any existing range
from setLimitsForBinOp, and NSW/NUW flags are used via
addWithNoWrap/subWithNoWrap to tighten bounds.

The motivation is to enable further folding of reduce.add expressions
in comparisons, where the result range can be bounded by the input
element ranges.
DeltaFile
+44-51llvm/test/CodeGen/AMDGPU/srem64.ll
+63-9llvm/lib/Analysis/ValueTracking.cpp
+22-28llvm/test/CodeGen/AMDGPU/urem64.ll
+13-21llvm/test/CodeGen/AMDGPU/udiv64.ll
+10-17llvm/test/CodeGen/AMDGPU/sdiv64.ll
+9-12llvm/test/Transforms/LoopVectorize/epilog-vectorization-reductions.ll
+161-1386 files not shown
+173-15112 files

LLVM/project d607565llvm/docs AMDGPUOperandSyntax.rst, llvm/docs/AMDGPU AMDGPUAsmGFX950.rst gfx950_operands.rst

[AMDGPU] Fix some links in the GFX950 documentation (#195951)

Some links in the GFX950 documentation are incorrect. For example all
the links for the operand 'simm16' in SOPK. This patch fixes those
problems. As part of the fix, an entry fo simm16 was added to
AMDGPUOperandSyntax.rst.
DeltaFile
+581-920llvm/docs/AMDGPU/AMDGPUAsmGFX950.rst
+237-58llvm/docs/AMDGPU/gfx950_operands.rst
+10-0llvm/docs/AMDGPUOperandSyntax.rst
+828-9783 files

NetBSD/pkgsrc-wip 6b7627dpitchfork distinfo cargo-depends.mk

pitchfork: add new package, doesn't build on NetBSD
DeltaFile
+1,640-0pitchfork/distinfo
+547-0pitchfork/cargo-depends.mk
+104-0pitchfork/TODO
+18-0pitchfork/Makefile
+13-0pitchfork/DESCR
+4-0pitchfork/PLIST
+2,326-01 files not shown
+2,327-07 files