[Flang] [Runtime ]Fix write endfile abort (#191633)
A WRITE after ENDFILE with ERR= or IOSTAT= was crashing instead of
handling the error properly. Earlier, the program was crashing because
the error was triggered too early (before error handling was ready).
---------
Co-authored-by: Jay Satish Kumar Patel <kumarpat at hpe.com>
[Flang][OpenMP] remove enable-delayed-privatization-staging to suppor… (#203626)
…t target first private default
This commit follows the decision in #182356 to remove the not yet
implemented for delayed privatization for firstprivate and private in
`omp target` regions in flang
Fixes #182356
Assisted with Opus
Convert FTP plugin to typesafe pattern
## Context
The `ftp` plugin was still dict-based: a `SystemServiceService` with a string `datastore_extend`, a `do_update` returning a plain dict, and consumers/mako templates reading config via `cfg['key']`. This moves it to the typesafe pattern (lean service class delegating to a `SystemServicePart`, `generic = True`, typed `config()`/`do_update`, `check_annotations=True`, `call2`), matching the converted `ups` plugin.
## Solution
- **New `plugins/ftp/` package** replacing `plugins/ftp.py` and `plugins/ftp_/`: `__init__.py` holds the lean `FTPService` (registered in `main.py`'s `ServiceContainer`), `config.py` holds `FTPModel` + `FTPServicePart` (extend/validate/do_update), and the port/cert attachment delegates plus the `connection_count` helper move in alongside. The old compound `ftp_/status.py` service is folded into `connection_count` as a `@private` method.
- **API models** (`api/v27_0_0/` only): split the legacy `@single_argument_args('ftp_update')` form into the standard `FTPUpdate` / `FTPUpdateArgs(data=...)` / `FTPUpdateResult` shape; the wire API is unchanged.
- **Consumers fixed for the dict→model change:** `usage.py` switches to `call2` + attribute access, and the three proftpd mako templates (plus a dead line in `ftpusers.mako`) move from `ftp['x']` to `ftp.x` now that `ftp.config` returns an `FTPEntry`.
- **`ServicePortDelegate.config()`** now normalizes a Pydantic config to a dict (`isinstance` / `model_dump`), the same dispatch the certificate delegate already does. Without this, the FTP port delegate hit `'FTPEntry' object has no attribute 'get'` whenever `port.validate_port` ran (e.g. on `ftp.update`).
- Added type annotations to `resolve_hostname`/`validate_port` in `async_validators.py` so the typed FTP part can call them, and added `plugins/ftp/` to the mypy workflow.
[libomp] Add kmp_str_ref (ADT 1/2) (#176162)
libomp currently has two limitations:
1) although it's C++, it doesn't link against the C++ stdlib 2) it
cannot link against the implementation of LLVM ADTs
These limitations shall not be altered at the moment.
As a result, this commit introduces kmp_str_ref, which is similar to
LLVM's StringRef. It currently only includes methods I need at the
moment, but it's easily extensible.
[JumpThreading] Use isGuaranteedToTransferExecutionToSuccessor() with range (#203918)
Use the overload that accepts a range of instructions. This is not NFC
because the scan is now subject to ScanLimit.
mail/opendkim-devel: Update to latest snapshot and enable Lua flavors
- Update to 2.11.0-Beta2-49 (commit 1c7a9f47c6)
- Enable Lua flavors support
- Remove obsolete or unsupported options: ADSP_LISTS, LDNS and LUA_ONLY_SIGNING
- Remove patches that have been merged upstream
PR: 295791
Approved by: hrs (mentor, blanket)
net-p2p/amule: Add missing build option
3.0.0 ships with ENABLE_IP2COUNTRY=OFF and upstream main shows that it
might be turned ON next releases.
Add it to CMAKE_OFF and this way we have all build options covered in port.
Also, add ChangeLog url forgotten in previous commit msg:
ChangeLog: https://github.com/amule-org/amule/releases/tag/3.0.0
[ConstantHoisting] Skip PHI edges from unreachable blocks (#203892)
When collecting constant candidates, skip incoming PHI edges from blocks
that are unreachable from entry. This avoids assertion failures when the
pass later tries to find insertion points or update users for constants
that only appear on unreachable edges.
While touching this part of the code, also remove an older XFAIL from
test/Transforms/ConstantHoisting/X86/pr52689-not-all-uses-rebased.ll
That test case also triggered the same assert once upon a time, but it
has been set to XFAIL for some time since the reproducer no longer
triggered the bug. This patch turns it into a normal test case instead
of an XFAIL test. Afaict the original problem may have been the same. We
have PHI nodes with edges from unreachable blocks. One difference
compared to the new aarch64 test is that here the involved constants are
GEPs and not simple scalars.
Closes https://github.com/llvm/llvm-project/issues/52689
Revert "[Dexter] Add label nodes for line references" (#203920)
Reverts llvm/llvm-project#202544
Commit appears to be causing failures in the pre-merge checks for
AArch64 specifically, though this is not entirely consistent. Reverting
to fix pre-merge checks immediately, will aim to reland with either a
fix or disabling tests for AArch64.
[SPIR-V] Fix division by zero on byte addressing GEP into a subbyte array (#202593)
walkLogicalAccessChainConstant divided the byte offset by the element
size which is zero for sub-byte element types ([N x i1])
sound: Create all device nodes with GID_AUDIO
Commit 6024e3f99a1e ("Add audio group") introduced GID_AUDIO, initially
for virtual_oss(8) loopback devices. Now make all of them with
GID_AUDIO.
Relnotes: yes
Sponsored by: The FreeBSD Foundation
Reviewed by: emaste
Pull-Request: https://ron-dev.freebsd.org/FreeBSD/src/pulls/35
[SPIR-V] Return false after non-constant offset error in generateSampleImage (#203512)
generateSampleImage emitted the diagnostic but kept building the
instruction, producing a malformed OpImageSample with the offset
silently dropped
adjust handling of erlang's -wx subpackage. it doesn't actually build on
machines that don't have wxWidgets,-webview, so disable wx completely on
those archs, rather than try to build it without webview present (which
fails).
this both fixes the build, and allows DPB to attempt to build erlang (it
was previously disabling it due to webkitgtk4 not being available, for
some reason).
ok volker
[clang] Honor ShowLevel for diagnostics without a source location (#203520)
When lldb evaluates expression and gets error, it prints double
`error: ` as below,
```
(lldb) expression v1::withImplicitTag(Simple{.mem = 6})
note: Ran expression as 'C++11'.
error: error: Multiple internal symbols found for 'v1'
```
The first `error:` is from lldb and the second `error:` is from
clang's diagnostic. LLDB's `ClangDiagnosticManagerAdapter` sets
`ShowLevel=false`, so that its own rendering
layer (`RenderDiagnosticDetails`) can add the severity prefix with
color. However, clang still adds "error:" in the output buffer means
the guard is missing.
`TextDiagnosticPrinter::HandleDiagnostic` has two paths: one for
[13 lines not shown]
main: Remove support for -F.
Has been deprecated and silently ignored for 6 years. If anyone is
still using it under the false impression that it does anything then
it's about time to start correcting them.