net/wol: anchor model mount to /wol to avoid XPath collision (#5975)
Wol.xml uses <mount>//wol</mount>, which BaseModel evaluates as a
global descendant XPath query across config.xml. When another plugin
under <OPNsense> defines a <wol> element (e.g. os-netflector's
<reflector><wol>), xpath('//wol') matches that node before
/opnsense/wol, causing OPNsense\Wol\Wol to see an unversioned empty
model and run_migrations.php to wipe permanent WoL entries.
Anchor the mount to /wol so BaseModel queries /opnsense/wol directly.
Fixes #5956
[clang] Fix rejects-valid on break label; with multiple labels on a loop (#246516)
Fixes #246505
The solution is simple: #152870 added a `clang::Scope::getPrecedingLabel()` member function which is expanded to `getPrecedingLabels()` here, so that the full sequence of labels is available during analysis in `FindLabeledBreakContinueScope()`. `break label;` and `continue label;` now consider all labels preceding a statement, rather than the innermost one.
#152870 deliberately omitted the capability to have multiple labels, and `test/Sema/labeld-break-continue.c` had test expectations that explicitly enforce the incorrect behavior.
Co-authored-by: Copilot <223556219+Copilot at users.noreply.github.com>
[OpenMP] Resume untied tasks in the device runtime
The device runtime does not have a scheduler for tasks, but an untied task
calls __kmpc_omp_task at each scheduling point, with the intention that a
scheduler will re-enqueue the next part of the task for later execution.
As it is, the call re-invokes the same task recursively, leading to a
double-free of the descriptor when the nested calls return.
This patch instead keeps state between launches, initialising a new
PartId field. When a running task re-enqueues itself, it records that it
is to be resumed. The __kmpc_omp_task call returns immediately without
running anything, and the task's caller is what calls the task again to
resume execution. The descriptor is freed once when the task is complete.
Handling this in the runtime leaves Clang's codegen as-is, which is
arguably cleaner than forcing all tasks to be tied at emission time,
which might not suit some future target.
Assisted-By: Claude
[Clang][OpenMP] Keep untied task locals in the task on the device
An untied task returns at each task scheduling point and is called again
to resume, so its local variables are kept in the task rather than on the
stack. CGOpenMPRuntimeGPU overrides getAddressOfLocalVariable and does not
consult the untied task locals that the base class looks up, so on the
device these variables were emitted as allocas and lost their values when
the task was resumed.
Look up the untied task locals first, as the base class does, for
variables that are not handled by an allocate directive.
Assisted-By: Claude
[AMDGPU] Support 'row_en' as a normal named-bit modifier
Like the previous patch does for done, this reworks row_en from an
asm string token into a normal modifier.
The exp pseudos stay as they are, because codegen needs the
implicit use of M0 for row_en exports, but they now all share the
same real instructions.
Assisted-By: Claude
[AMDGPU] Support 'done' as a normal named-bit modifier (#247138)
b9b7b31e2368 made done be parsed as a named bit, but in the asm strings
it remained a token, with validateTargetOperandClass() then working
around it by calling parseNamedBit() for that token.
This work-around is not needed. The modifier can be a normal named-bit
operand of the real instructions.
The exp pseudos stay as they are, because codegen needs mayLoad raised
for 'done' exports (7bee6ac798f2 explains why), but they now share the
real instructions.
As a side effect, the real instructions now have mayLoad = 0, which I
understand is correct, because they don't really load anything.
Assisted-By: Claude
[Clang] Fix crash on a statement expression ending in a declaration that declares nothing (#224682)
Fixes #215454
A declaration that declares nothing, like `int;` or `__typeof__(e);`, is
accepted with a warning but produces no Decl, so the parser drops it
without reporting an error. As the last statement of a statement
expression, that made the whole statement expression invalid, again
without an error. Used as an `if` condition it became a `RecoveryExpr`
although nothing had been diagnosed, so CodeGen ran and asserted in
`EvaluateAsInt`. Elsewhere it was silently dropped, for example `({
foo(); int; })` lost the call to `foo()`.
A statement expression is now only marked invalid when an error was
reported for its last statement. Otherwise it stays valid, has no result
and gets type `void`, like GCC, so `if (({ ; int; }))` gets the usual
"statement requires expression of scalar type" error.
LLM (Gemini 3.1 Pro) tools were used for this contribution specially to
write tests and docs. I've reviewed, built, and tested the change myself
before pushing to GitHub.
lazygit: updated to 0.67.0
0.67.0
Enhancements
Improve bisecting
Make "go to bottom" stop at the beginning of each branch of a stack
When a "git am" in progress, let the user continue, skip or abort it
Let the user continue or abort a squash merge
Add "Copy commit message to clipboard" to the commit menu
Allow merging into a detached HEAD
Don't lose shell command history and recent repos when running several lazygit instances
Change double-click in the files panel back to toggle staging
Improve moving commits across branch boundaries in a stack of branches
Scroll views sideways with the horizontal mouse wheel
Resize the side panels by dragging them with the mouse
Re-implement auto-updating to make it actually work
[20 lines not shown]
[SystemZ][z/OS] Remove always triggering assertion
HLASM does not have mnemonics for all conditions. However, these
instructions are generated, so this `assert()` triggers for all
non-trivial inputs, which really hinders debugging.
When the issue is solved at the right level, then this `assert()`
can be added back.