FreeBSD/src d15d6bfsys/dev/acpica acpi.c

acpi: Fix trying to enter NONE state

In acpi_system_eventhandler_sleep(), I forgot to update
ACPI_STATE_UNKNOWN when switching to new sleep types.

Reviewed by:    olce
Approved by:    olce
Fixes:  97d152698f48 ("acpi: Use sleep types defined in sys/power.h")
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D55119
DeltaFile
+1-1sys/dev/acpica/acpi.c
+1-11 files

FreeBSD/src d35e369sys/dev/acpi_support acpi_ibm.c, sys/dev/syscons syscons.c

sys/power.h: enum power_sstate_transition

Turn POWER_SLEEP_STATE_* defines into enum power_sstate_transition.

Reviewed by:    markj
Approved by:    markj
Sponsored by:   The FreeBSD Foundation
Differential Revision:  https://reviews.freebsd.org/D52497
DeltaFile
+10-8sys/sys/power.h
+7-6sys/kern/subr_power.c
+6-1sys/dev/acpi_support/acpi_ibm.c
+2-2sys/dev/vt/vt_core.c
+2-2sys/dev/syscons/syscons.c
+27-195 files

FreeBSD/ports aa5ff26devel/jenkins distinfo Makefile

devel/jenkins: Update to 2.549

Sponsored by:   The FreeBSD Foundation
DeltaFile
+3-3devel/jenkins/distinfo
+1-1devel/jenkins/Makefile
+4-42 files

LLVM/project 427bb1clldb/source/Plugins/Process/FreeBSD NativeRegisterContextFreeBSD_mips64.cpp NativeRegisterContextFreeBSD_mips64.h, lldb/source/Plugins/Process/Utility RegisterContextFreeBSD_mips64.cpp RegisterContextFreeBSD_mips64.h

[lldb] Remove mips64 support for FreeBSD (#179582)

The last FreeBSD version supporting mips64 is FreeBSD 13 which will be
EOLed on April 30th. LLVM 23.1.0 release is expected to be August 25th
according to the LLVM calendar. The usage of mips64 is less noticeable
so it's hard to know if it is properly working, and even if it works, it
is hard to test new features on FreeBSD mips64.

Thus, remove support for mips64 on FreeBSD.

---------

Signed-off-by: Minsoo Choo <minsoochoo0122 at proton.me>
DeltaFile
+0-240lldb/source/Plugins/Process/FreeBSD/NativeRegisterContextFreeBSD_mips64.cpp
+0-179lldb/source/Plugins/Process/Utility/RegisterContextFreeBSD_mips64.cpp
+0-75lldb/source/Plugins/Process/FreeBSD/NativeRegisterContextFreeBSD_mips64.h
+0-30lldb/source/Plugins/Process/Utility/RegisterContextFreeBSD_mips64.h
+2-7lldb/source/Plugins/Process/Utility/RegisterContextPOSIX_mips64.cpp
+0-4lldb/source/Plugins/Process/FreeBSD/NativeProcessFreeBSD.cpp
+2-5357 files not shown
+6-54513 files

LLVM/project 5491721.github/workflows release-asset-audit.yml

workflows/release-asset-audit: Split workflow into two jobs (#179833)

This way we can assign an environment to the job that uses the
ISSUE_SUBSCRIBER_TOKEN secret.
DeltaFile
+23-3.github/workflows/release-asset-audit.yml
+23-31 files

LLVM/project 41de4b1clang/include/clang/StaticAnalyzer/Core/PathSensitive CoreEngine.h ExprEngine.h, clang/lib/StaticAnalyzer/Core ExprEngine.cpp CoreEngine.cpp

[NFC][analyzer] Cleanup dead code around NodeBuilder (#179711)

As I was trying to understand the class `NodeBuilder` and its
subclasses, I wasted a few hours on studying dead or needlessly
complicated code. I'm creating this patch to ensure that others in the
future won't need to bother with this cruft.

This commit eliminates three deficiencies:
- (Small change:) In a constructor of `StmtNodeBuilder` I switched to
using the `takeNodes()` overload which accepts an `ExplodedNodeSet`
(instead of manually iterating).
- The `Finalized` attribute of NodeBuilder was completely irrelevant (it
was always initialized to `true`).
- The "main" feature of `NodeBuilderWithSinks` was that it gathered the
generated sink nodes into a set, but this was never actually used. As
the only other feature (storing a `ProgramPoint` in a data member) was
very trivial, I replaced this class with a plain `NodeBuilder` in the
only location that used it.
DeltaFile
+8-67clang/include/clang/StaticAnalyzer/Core/PathSensitive/CoreEngine.h
+14-9clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
+4-6clang/lib/StaticAnalyzer/Core/CoreEngine.cpp
+2-4clang/include/clang/StaticAnalyzer/Core/PathSensitive/ExprEngine.h
+28-864 files

LLVM/project f52d74cclang/lib/CIR/CodeGen CIRGenBuiltinAArch64.cpp CIRGenFunction.h

Address comments from Andy
DeltaFile
+16-14clang/lib/CIR/CodeGen/CIRGenBuiltinAArch64.cpp
+1-1clang/lib/CIR/CodeGen/CIRGenFunction.h
+17-152 files

LLVM/project bfbbed1llvm/lib/Target/RISCV/AsmParser RISCVAsmParser.cpp, llvm/test/MC/RISCV option-arch.s

[RISCV] Call updateCZceFeatureImplications from RISCVAsmParser::setFeatureBits. (#179870)

DeltaFile
+6-2llvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
+1-2llvm/test/MC/RISCV/option-arch.s
+7-42 files

FreeBSD/src b3f23aesbin/reboot nextboot.sh

nextboot: Reimplement missing -a option

PR:             260520
MFC after:      3 days
Fixes:          e307eb94ae52 ("loader: zfs should support bootonce an nextboot")

(cherry picked from commit 33510b16e663bde5be5e4a56ccb17f848c41ef4e)
DeltaFile
+4-0sbin/reboot/nextboot.sh
+4-01 files

LLVM/project 11e3abdmlir/include/mlir/IR BuiltinTypeInterfaces.td, mlir/lib/AsmParser AttributeParser.cpp

getter / iterator via interface
DeltaFile
+38-112mlir/lib/IR/BuiltinAttributes.cpp
+72-56mlir/include/mlir/IR/BuiltinTypeInterfaces.td
+121-0mlir/lib/IR/BuiltinTypes.cpp
+35-39mlir/lib/IR/AsmPrinter.cpp
+50-0mlir/lib/IR/BuiltinTypeInterfaces.cpp
+15-11mlir/lib/AsmParser/AttributeParser.cpp
+331-2185 files not shown
+385-24011 files

FreeBSD/ports 170c569devel/pecl-ev distinfo Makefile

devel/pecl-ev: update to 1.2.3 release (+)

    Fix #54: non-debug compilation failed with PHP 8.5.2+

Chamgelog:      https://pecl.php.net/package-info.php?package=ev&version=1.2.3
DeltaFile
+3-3devel/pecl-ev/distinfo
+1-1devel/pecl-ev/Makefile
+4-42 files

FreeBSD/ports 9a24886textproc/aspell-ispell distinfo Makefile

textproc/aspell-ispell: upgrade to 0.60.8.2

Follow textproc/aspell upgrade to 0.60.8.2 in 2294966338e8bb4dc8479bc260a5e1ef8d3117f8

Release notes:  https://github.com/GNUAspell/aspell/releases/tag/rel-0.60.8.2
DeltaFile
+3-3textproc/aspell-ispell/distinfo
+1-1textproc/aspell-ispell/Makefile
+4-42 files

LLVM/project 03190b0llvm/utils/gn/secondary/clang/lib/Analysis/LifetimeSafety BUILD.gn

[gn build] Port 4f3ba73896e4
DeltaFile
+1-0llvm/utils/gn/secondary/clang/lib/Analysis/LifetimeSafety/BUILD.gn
+1-01 files

LLVM/project f384602lldb/source/Plugins/Process/Utility RegisterContextFreeBSD_i386.cpp RegisterContextFreeBSD_mips64.cpp

[lldb] [Process/Utility] Update code url for FreeBSD in comments (#178556)

FreeBSD has moved from svn to git. Use https://cgit.freebsd.org/src
instead as it is the source of truth. i386 and mips64 were no longer
supported as of FreeBSD 15 and 14, respectively, so link stable branch
instead of main branch. See [FreeBSD platforms
page](https://www.freebsd.org/platforms/).

---------

Signed-off-by: Minsoo Choo <minsoochoo0122 at proton.me>
DeltaFile
+1-1lldb/source/Plugins/Process/Utility/RegisterContextFreeBSD_i386.cpp
+1-1lldb/source/Plugins/Process/Utility/RegisterContextFreeBSD_mips64.cpp
+1-1lldb/source/Plugins/Process/Utility/RegisterContextFreeBSD_powerpc.cpp
+1-1lldb/source/Plugins/Process/Utility/RegisterContextFreeBSD_x86_64.cpp
+4-44 files

LLVM/project 3767803lldb/docs index.rst

[lldb][docs] Add FreeBSD kernel debugging information (#179597)

Signed-off-by: Minsoo Choo <minsoochoo0122 at proton.me>
DeltaFile
+1-0lldb/docs/index.rst
+1-01 files

FreeBSD/ports 9783501sysutils/parallel distinfo

sysutils/parallel: Fix fetch error

There is a checksum mismatch, so upstream must have re-rolled the
release.  The signature on the tarball is valid, so update distinfo.

Approved by:    portmgr (blanket build fix)
Sponsored by:   The FreeBSD Foundation
DeltaFile
+3-3sysutils/parallel/distinfo
+3-31 files

LLVM/project 50e3d0cflang/test lit.cfg.py, flang/test/Driver asm-error-fix.s

[flang][driver] Improve diagnostic for assembly inputs

When an assembly file is passed to the Flang driver, it currently fails
with a confusing internal error mentioning the unsupported `-cc1as`
tool.

This update detects assembly inputs early in the driver and emits a
clear, user-facing diagnostic explaining that Flang does not support
assembly files as input. The logic is implemented in a small helper
function and is intentionally temporary, so it can be removed once Flang
gains support for assembling inputs.

Fixes: #173528
DeltaFile
+27-0flang/tools/flang-driver/driver.cpp
+9-0flang/test/Driver/asm-error-fix.s
+1-0flang/test/lit.cfg.py
+37-03 files

FreeBSD/ports be9e4cdgames/hs-scroll Makefile

games/hs-scroll: Mark BROKEN on FreeBSD 16

Reported by:    pkg-fallout
DeltaFile
+2-0games/hs-scroll/Makefile
+2-01 files

FreeBSD/ports fbefe22devel/git-merge-changelog Makefile distinfo, devel/git-merge-changelog/files patch-test-errno.c

devel/git-merge-changelog: Update to 1.0
DeltaFile
+6-25devel/git-merge-changelog/Makefile
+0-13devel/git-merge-changelog/files/patch-test-errno.c
+3-0devel/git-merge-changelog/distinfo
+9-383 files

LLVM/project 7165353llvm/lib/Analysis VectorUtils.cpp, llvm/lib/Transforms/Vectorize VPlanRecipes.cpp

Revert "[LoopVectorize] Support vectorization of overflow intrinsics" (#179819)

Reverts llvm/llvm-project#174835, which causes clang crashes.

See
https://github.com/llvm/llvm-project/pull/174835#issuecomment-3844233831
and https://github.com/llvm/llvm-project/issues/179671 for details.
DeltaFile
+1-469llvm/test/Transforms/LoopVectorize/multiple-result-intrinsics.ll
+1-73llvm/test/Transforms/LoopVectorize/AArch64/multiple-result-intrinsics.ll
+15-18llvm/test/Transforms/LoopVectorize/struct-return.ll
+9-6llvm/lib/Analysis/VectorUtils.cpp
+1-6llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
+27-5725 files

pkgng/pkgng 9e2764clibpkg pkg_attributes.c

plug memory leak
DeltaFile
+1-0libpkg/pkg_attributes.c
+1-01 files

FreeBSD/src 5901267usr.bin/diff diffdir.c diffreg.c, usr.bin/diff/tests diff_test.sh

diff: Don't compare a file or directory to itself

While here, stop abusing struct dirent for something we don't even need
to store.

PR:             254455
MFC after:      1 week
Sponsored by:   Klara, Inc.
Reviewed by:    thj, kevans
Differential Revision:  https://reviews.freebsd.org/D55113
DeltaFile
+19-0usr.bin/diff/tests/diff_test.sh
+6-8usr.bin/diff/diffdir.c
+3-0usr.bin/diff/diffreg.c
+28-83 files

FreeBSD/src c3904a7usr.bin/diff pr.c pr.h

diff: Fix pagination leak

* Drop an unnecessary variable and rename pidfd to procd.

* Rewinding stdout serves no purpose, so stop doing it.

* Don't bother freeing memory or setting the global status right
  before erroring out.

* Error out if dup(2) or dup2(2) fail.

* In the unlikely case that our pipe is equal to stdout, we need to
  record that information so we don't close it when cleaning up.

* Don't bother closing a descriptor before dup2(2)ing to it.

* Don't forget to close the the process descriptor after reaping the
  child process.


    [5 lines not shown]
DeltaFile
+10-12usr.bin/diff/pr.c
+1-1usr.bin/diff/pr.h
+11-132 files

FreeBSD/src 2704926usr.bin/diff/tests diff_test.sh

diff: Add test case for pagination resource leak

The pagination code leaks either processes or descriptors or both,
depending on the exact version of the code you have.  Add a test case
which exercises this leak to facilitate fixing it.

MFC after:      1 week
Sponsored by:   Klara, Inc.
Reviewed by:    thj, kevans
Differential Revision:  https://reviews.freebsd.org/D55111
DeltaFile
+22-0usr.bin/diff/tests/diff_test.sh
+22-01 files

FreeBSD/src 5fc739eusr.bin/diff diffreg.c, usr.bin/diff/tests diff_test.sh

diff: Fix integer overflows in Stone algorithm

Fix integer overflows that may occur when the context window is very
large and add tests to exercise those conditions.

PR:             267032
MFC after:      1 week
Sponsored by:   Klara, Inc.
Reviewed by:    thj, kevans
Differential Revision:  https://reviews.freebsd.org/D55110
DeltaFile
+33-0usr.bin/diff/tests/diff_test.sh
+21-11usr.bin/diff/diffreg.c
+54-112 files

FreeBSD/src 55f160fusr.bin/diff diffreg_new.c

diff: Print an error message on I/O error

If an error occurs while atomizing either file, immediately print an
error message using the error code returned by the atomizer, and set
the error bit in the exit status.

PR:             292198
MFC after:      1 week
Sponsored by:   Klara, Inc.
Reviewed by:    thj, kevans
Differential Revision:  https://reviews.freebsd.org/D55109
DeltaFile
+11-2usr.bin/diff/diffreg_new.c
+11-21 files

FreeBSD/src a689bfacontrib/libdiff/include diff_main.h, contrib/libdiff/lib diff_atomize_text.c

libdiff: Simplify truncation detection

* Adjust the comment to reflect the fact that SIGBUS can occur not only
  if the file is truncated, but also if an I/O error occurs while paging
  in any part of it.

* Instead of setting a flag, just return EIO.

* Adjust the unit test accordingly.

MFC after:      1 week
Sponsored by:   Klara, Inc.
Reviewed by:    thj, kevans
Differential Revision:  https://reviews.freebsd.org/D55108
DeltaFile
+7-5contrib/libdiff/lib/diff_atomize_text.c
+0-4usr.bin/diff/diffreg_new.c
+1-2lib/libdiff/tests/libdiff_test.c
+0-1contrib/libdiff/include/diff_main.h
+8-124 files

FreeBSD/src 6b0a4d6lib/libc/resolv res_init.c

libc/resolv: Switch default to loopback address

If no resolver configuration was found, we would fall back to INADDR_ANY
and IN6ADDR_ANY.  This made sense when it was first written thirty or
forty years ago but not today, especially since connecting to INADDR_ANY
or IN6ADDR_ANY is no longer supported.  Switch to the loopback address
and simplify the code.

Note that (as the pre-existing comment in the code states) running
without a resolver configuration is not really supported.  Still, if
we're going to have a hardcoded fallback, it might as well work.

PR:             291790
MFC after:      1 week
Reviewed by:    kevans
Differential Revision:  https://reviews.freebsd.org/D55011

(cherry picked from commit 1538284a5fddfce546db678cb873b7edc6adb9ed)
DeltaFile
+26-41lib/libc/resolv/res_init.c
+26-411 files

FreeBSD/src c137555lib/libc/resolv res_init.c

libc/resolv: Switch default to loopback address

If no resolver configuration was found, we would fall back to INADDR_ANY
and IN6ADDR_ANY.  This made sense when it was first written thirty or
forty years ago but not today, especially since connecting to INADDR_ANY
or IN6ADDR_ANY is no longer supported.  Switch to the loopback address
and simplify the code.

Note that (as the pre-existing comment in the code states) running
without a resolver configuration is not really supported.  Still, if
we're going to have a hardcoded fallback, it might as well work.

PR:             291790
MFC after:      1 week
Reviewed by:    kevans
Differential Revision:  https://reviews.freebsd.org/D55011

(cherry picked from commit 1538284a5fddfce546db678cb873b7edc6adb9ed)
DeltaFile
+26-41lib/libc/resolv/res_init.c
+26-411 files

LLVM/project 79e0693llvm/lib/Support KnownFPClass.cpp, llvm/test/Transforms/Attributor nofpclass-powi.ll

It was the right way the first time
DeltaFile
+8-8llvm/test/Transforms/Attributor/nofpclass-powi.ll
+6-3llvm/lib/Support/KnownFPClass.cpp
+14-112 files