[Flang][OpenMP] Fix THREADPRIVATE lowering crash in nested BLOCKs (#244185)
Threadprivate variables in nested BLOCKs have no binding at parallel
entry, causing lowering to crash.
Defer uninstantiated BLOCK variables to BLOCK lowering while preserving
rebinding of already instantiated variables.
Add regression tests for nested BLOCKs, parallel do, tasks, nested
parallel regions, implicit SAVE, and enclosing BLOCKs.
AI tools were used to assist in generating the test cases.
Fixes https://github.com/llvm/llvm-project/issues/230312
libsaslc: GSSAPI: Use gss_acquire_cred if AUTHCID is set.
Without this change, gss_init_sec_context will _only_ consult the
krb5 credential cache, requiring kinit(1) beforehand -- it will
ignore any available keytabs, which is suboptimal for usage by a
client daemon like postfix relaying mail over SMTP as a client.
With this change, gss_acquire_cred will consult the kr5 credential
cache or the keytab, and you can choose what credential it uses.
The location of the keytab can be set with the krb5.conf
[libdefaults] default_keytab_name setting, or the KRB5_KTNAME
environment variable. (Perhaps we should add a new saslc property
for the keytab and/or ccache path too, using the gssapi cred store
extensions that will become available once Heimdal 8 is out.)
PR lib/60320: libsaslc: gssapi mech should support loading keytabs
[Clang] Fix crash when substituting an invalid _Generic controlling type (#244586)
This fixes https://github.com/llvm/llvm-project/issues/242122. When
substitution of the controlling type fails, the controlling expression
is unset, so isInvalid() returns false. This lets Clang attempt to
rebuild the generic selection with a null operand. Use isUsable() to
detect when both the expression and type are absent and propagate the
substitution failure.
Assisted-by: OpenAI Codex
CI install check: boot environments named after the build, home datasets
The installer names the boot environment after the version and build
(nextbsd/nextbsd-userland#674) and makes each home a dataset of its own
(nextbsd/nextbsd-userland#673). Accept both, and the old default name, so
the check passes before and after those land.
Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
[mlir][gpu] Replace hard-coded ctor priority of 123 with an option defaulting to 123 (#246111)
The current `gpu-module-to-binary` pass hard-codes ctor priority to
`123`, which causes conflicts with embedded GPU runtimes. This change
allows the ctor priority to be set via pass/pipeline options, while
keeping the default at `123`.
Some out of tree GPU runtime compatibility tools load the runtime with a
different ctor priority, so this gives flexibility to ensure
MLIR-generated modules are loaded in the right order.
[IPSCCP] Mark byval capture as Overdefined (#244824)
ptr byval reuse the original pointer identity. Any capture on ptr byval
can easily cause miscompilation as taking reference on ptr byval is
always considered as the passed value. Therefore, we put any ptr byval
in OverDefined.
Assisted-by: Claude # Test
Fixes: https://github.com/llvm/llvm-project/issues/236130
bsdconfig: finish wlanconfig SSID join and wpa_supplicant(5) editing
Complete the wireless network menu, which since its 2013 introduction
stopped just short of usefulness: it could scan the airwaves and list
networks configured in wpa_supplicant.conf(5), but selecting a scanned
network did nothing, the configuration editor displayed values it could
not change, and nothing was ever written back to disk. All three
XXXDT-unfinished paths are now implemented.
Selecting an unmarked ([ ]) entry joins that network. The security
type is derived from the wpa_cli(8) scan_results flags (PSK, SAE, EAP,
WEP, or open) and the user is prompted accordingly: passphrases and
keys through an obscured password box with validation (8-63 character
passphrase or 64-digit hex pre-shared key; 5/13 character ASCII or
10/26 digit hex WEP key), EAP through identity and password prompts.
The resulting network block is appended to wpa_supplicant.conf(5) with
priority=5 and wpa_supplicant(8) is reloaded via wpa_cli(8)
reconfigure, so the join both takes effect immediately and survives a
reboot. Manually Connect, which previously dead-ended in the editor
[44 lines not shown]
[flang][Semantics] Fix DEC STRUCTURE re-export writing un-parseable module file (#240880)
Fixes #229768
## Problem
When a module re-exports a DEC `STRUCTURE` brought in via `USE`, flang
writes the slash-enclosed structure name into the re-exporting module's
`.mod` file as an only-list item:
```fortran
! m2.mod (incorrect)
module m2
use m1,only:/s/
end
```
`/s/` is not a valid Fortran identifier, so the module file cannot be
re-parsed. Any program that `USE`s the re-exporting module crashes with
[74 lines not shown]
[TargetParser][PowerPC] Detect every 7450-class G4 from /proc/cpuinfo (#245881)
Linux names the 7450-class cores "7450", "7455", "7447/7457", "7447A"
and "7448", but only "7455" mapped to the 7450. On a 7447A or 7448,
-mcpu=native chose generic, which has neither AltiVec nor the 7450
itineraries. The 603 and 750 families, the 603e-based 82xx, G2_LE and
e300 cores, and the 604r and 604ev also fell back to generic.
Map every name in arch/powerpc/kernel/cpu_specs_book3s_32.h to its CPU,
and drop "7447", which no kernel prints. The exception is the e300c2,
which has no FPU: it stays generic rather than taking 603e's fres and
frsqrte.
Assisted-by: Claude Code
devel/javadeps: Fix nits that pkglint complains about
- Use INSTALL not CP.
- Use pax -pp not -pe.
- Set LICENSE.
- Document patch-aa.
In theory this commit does not change the binary package. Upstream
seems gone and probably there are no users, but it was not setting a
good example :-)
x11/xdg-desktop-portal-wlr: depend on fuzzel as window chooser
- licensed under MIT like xdg-desktop-portal-wlr itself
- fewer dependencies due to *not* using Pango
- used last when all other chosers haven't been installed
For example, when all "dmenu" choosers are missing OBS fails to retry
xdg-desktop-portal-wlr without Window capture.
$ obs-studio
[...]
info: PipeWire initialized
info: [pipewire] Screencast session created
/bin/sh: wmenu: not found
/bin/sh: wofi: not found
/bin/sh: rofi: not found
/bin/sh: bemenu: not found
/bin/sh: mew: not found
/bin/sh: fuzzel: not found
[5 lines not shown]
[Inliner] Keep metadata on callee calls inlined through an invoke (#246149)
When a callee is inlined at an invoke site, its may-throw calls are
rewritten into invokes that unwind to the caller's landing pad.
changeToInvokeAndSplitBasicBlock() copied only !prof to the new invoke,
so these calls lost metadata such as !alloc_token, !memprof and
!callsite. Copy all metadata, as createCallMatchingInvoke() already does
for the reverse conversion.
For example, `new char[n]` in an inline helper called in a scope with a
destructor got the fallback alloc token instead of the pointer-free one.