[lldb] Remove `__iter/len__` from `SBTypeEnumMember` (#196610)
`SBTypeEnumMember` doesn't have a `GetSize` and
`GetTypeEnumMemberAtIndex`, so having `__iter__` and `__len__` doesn't
make sense. These are on `SBTypeEnumMemberList`. From the docstrings, it
looks like the extensions were copied from said type.
[DWARFLinker] Emit .debug_names entries for DW_TAG_template_alias (#196440)
The tag was missing from the accelerator-records saver's switch, so
template alias DIEs were skipped and --verify-dwarf=output rejected the
result.
ports-mgmt/portmaster: update to version 3.34
This update adds support for FreeBSD pkgbase systems. Packages with
names that start with FreeBSD-* should be ignored by all operations.
Additional changes:
* Deal with removed port directories when updating all installed
ports.
* Deal with ports that are installed with a flavour but where the
port is no longer flavoured.
zdb: detect BRT and DDT leaks during block traversal
During -b traversal, track BRT and DDT reference counts and report
blocks claimed more times than their reference tables account for
if it causes claim errors, instead of just asserting it. Also
report entries with references not fully consumed by the traversal.
Add zdb leaks checks to cloning and dedup tests. This should make
sure the pools are in a sane state after completing the functional
tests.
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Alexander Motin <alexander.motin at TrueNAS.com>
Closes #18494
[compiler-rt][profile][NFC] Introduce INSTR_PROF_INSTRUMENT_GPU_FUNC macro (#196538)
Add a macro INSTR_PROF_INSTRUMENT_GPU_FUNC for the name of the GPU
profiling function __llvm_profile_instrument_gpu (added in #187136),
following the same pattern as INSTR_PROF_VALUE_PROF_MEMOP_FUNC. Use the
macro in both the declaration in InstrProfiling.h and the definition in
InstrProfilingPlatformGPU.c.
This prepares the upcoming HIP/AMDGPU offload PGO patch (#177665) to use
the same macro when calling this function.
www/firefox-esr: drop now unneeded distpatch for ffmpeg8
seems #2036244 adds support for ffmpeg8 in the esr140 branch, i've been
able to play video from various streaming sites without issues.
patch failure reported by ajacoutot@
[flang][OpenMP] Fix component-level initializer in declare reduction (#195751)
When a declare reduction initializer uses a component assignment such as
`initializer(omp_priv%member = 0)`, the lowering would store the scalar
RHS value (i32) directly to the whole derived-type reference, causing a
FIR verification error: `'fir.store' op store value type must match memory reference type`.
The root cause is that `MakeEvaluateExpr` extracts only the RHS
expression
from the `AssignmentStmt`, discarding the LHS component information. The
lowering callback then returns this scalar value which gets stored to
the
wrong type.
Fix this by mirroring the approach already used for combiner
expressions:
pass the parser-level `OmpStylizedInstance` to `processInitializer` so
the
callback can access the typed assignment and lower the full assignment
[8 lines not shown]
[Clang] Track temporary cleanups in rebuilt default member initializers
Fixes https://github.com/llvm/llvm-project/issues/196469
When Clang rebuilds a default member initializer for CWG1815 lifetime extension, TreeTransform's initializer path can drop CXXBindTemporaryExpr cleanup information. That loses destructor cleanup for ordinary temporaries inside the initializer; for a DMI-local lambda with an init-capture, the closure temporary is not destroyed at the end of the full-expression.
Handle CXXBindTemporaryExpr explicitly while rebuilding these initializers, rebind transformed subexpressions with MaybeBindToTemporary, and remember whether the rebuilt initializer still needs non-lifetime-extended cleanups. After discarding the cleanups collected for lifetime extension, restore the ExprWithCleanups marker only when such a rebuilt temporary remains.
When MaybeBindToTemporary references an implicit destructor and Sema has synthesized its body, pass that declaration to the AST consumer because there may be no later top-level definition point for DMI-local closure types. Add a CodeGenCXX regression test for a lambda init-capture in a default member initializer.
Assisted By: OpenAI Codex
Merge commit 871038759afb from llvm git (by Marco Elver):
Thread Safety Analysis: Fix pointer handling of variables with deprecated attributes (#148974)
de10e44b6fe7 ("Thread Safety Analysis: Support warning on
passing/returning pointers to guarded variables") added checks for
passing pointer to guarded variables. While new features do not
necessarily need to support the deprecated attributes (`guarded_var`,
and `pt_guarded_var`), we need to ensure that such features do not cause
the compiler to crash.
As such, code such as this:
struct {
int v __attribute__((guarded_var));
} p;
int *g() {
return &p.v; // handleNoMutexHeld() with POK_ReturnPointer
[24 lines not shown]
[flang][OpenACC] support collapse on unstructured acc.loop (#196174)
PR #164992 added unstructured-loop support to OpenACC lowering (no
bounds on acc.loop, IVs privatized, body emitted as explicit cf), but it
didn't covered the `collapse(N)` case. Compiling
```
!$acc parallel loop collapse(2)
do j = 1, n
do i = 1, n
if (i == jdiag) then
a(i,j) = 0.0d0
cycle
end if
a(i,j) = real(i + j, 8)
end do
end do
```
asserted in MLIR's runRegionDCE: "Assertion `mightHaveTerminator()'
failed".
[14 lines not shown]
clang: Consolidate -aux-triple handling (#196551)
All of the offload languages were essentially doing the
same thing, with overcomplicated conditions conditional on
the language.
x11/alttab: Update to 1.8.0
ChangeLog: https://github.com/sagb/alttab/releases/tag/v1.8.0
* Disable bottom line by default.
* Avoid xnee dependency in tests.
* Build variable to debug icon source.
* More secure input filtering.
* Option -s 5 to prefer file icon if size is equal.
* Escape key to close UI.
* Handle COMPOUND WM_NAME.
* Secure window name loading in ratpoison.
* Show desktop names instead of numbers.
* Adapt test script for Darwin.
* Option -sortmin to show minimized windows last.
* Option -min to color minimized windows frames.
* Fix DISPLAY in test script.
* Fix C language errors.
[3 lines not shown]
[AMDGPU] Pre-commit unit test for RP tracking `reset`/`advance` inconsistencies fix (#196098)
This adds a new AMDGPU unit test file for testing the behavior of
`GCNRPTracker` and its related classes. The two test showcase confusing
return value and behavioral semantics for variants of the advance and
reset functions, which will be clarified in a follow up commit.