[flang-rt][test] Fix write01.f90 missing LD_LIBRARY_PATH (introduced in #187662)
The test binary was run without setting LD_LIBRARY_PATH, causing
libflang_rt.runtime.so to not be found at runtime. Match the pattern
used by exec.f90 and ctofortran.f90.
Co-Authored-By: Claude Sonnet 4.6 <noreply at anthropic.com>
[libc][math] Fix pow() subnormal base exponent computation (#198134)
For subnormal inputs, get_exponent() returns -1023. The code subtracted
64 after normalizing but didn't recompute e_x from the normalized value.
This set e_x to -1087 for every subnormal.
To fix, compute e_x from the normalized value.
powf() doesn't have this bug because it adds
`x_u >> FloatBits::FRACTION_LEN` to ex, where x_u is `x_u =
FloatBits(x).uintval();` with `x` being the normalized value. Added
subnormal base tests for powf to show that it works fine as-is.
Fixes #197212.
[llvm-debuginfo-analyzer] Fix missed 'else' (LVCodeViewReader / LVDWARFReader) (#192923)
Issues found PVS studio static analyzer.
LVCodeViewReader.cpp. PR for #170117.
4. Potent UB: manipulation of invalid object.
The PVS-Studio warning: V519 The 'FeaturesValue' variable is assigned
values twice successively.
The original patch caused fail tests for linker error and it was reverted.
This PR include original (#188578) + necessary edit in CMakeList.
Committed on behalf of @Seraphimt
x509_addr: do not call memcmp() on NULL
If the minimum length is 0, either a->data or b->data could be NULL, so
do not call memcmp() and let the length comparison decide. Doing it this
way preserves the RFC 3779, section 2.2.3.3 semantics and avoids the UB.
A valid IPAddressFamily has an addressFamily element of 2 or 3 octets:
2 octets for the AFI and 1 octet for the optional SAFI. The check as
it is written compares the AFIs and, if they're equal, lets absent SAFI
be smaller than any other SAFI. So IPv4 (0x0001) sorts before IPv4
unicast (0x000101) and that in turn sorts before IPv6 (0x0002).
Found by beck while breaking OpenSSL
ok kenjiro
[CUF] Fix CompilerGeneratedNamesConversion renaming managed companion globals
CUFAddConstructor creates a companion pointer global (e.g. foo.managed.ptr)
for each non-allocatable managed variable. When CompilerGeneratedNamesConversion
ran after CUFAddConstructor, it replaced the dots with 'X',
so CUFOpConversionLate could no longer find the companion by name and fell back
to CUFGetDeviceAddress with the wrong host pointer, causing cudaErrorInvalidSymbol.
Fix: mark the companion global with a cuf.managed_ptr unit attribute in
CUFAddConstructor and skip it in CompilerGeneratedNamesConversionPass.
Co-authored-by: Claude Sonnet 4.6 <noreply at anthropic.com>
chacha: avoid -Wunterminated-string-initialization warning
The sizes of sigma[] and tau[] aren't used, so include a trailing NUL and
thereby avoid upsetting modern compilers about use of dangerous, valid C.
ok deraadt djm
devel/electron42: Add port: Build cross-platform desktop apps with JavaScript, HTML, and CSS
Build cross platform desktop apps with JavaScript, HTML, and CSS.
It's easier than you think.
If you can build a website, you can build a desktop app. Electron is a
framework for creating native applications with web technologies like
JavaScript, HTML, and CSS. It takes care of the hard parts so you can
focus on the core of your application.
WWW: https://electronjs.org/
[BPF] Remove getMaxNumArgs() from BPFTargetTransformInfo (#198223)
The function getMaxNumArgs() hardcoded the maximum number of function
arguments to 5. LLVM now supports more than 5 arguments with stack
argument support. Remove this leftover.
[mlir][linalg] Add splat transpose canonicalization patterns (#195991)
All elements in a dense splat are identical, transposing it only changes
the shape, but still maintaining the value. Add a pattern where it would
replace the `linalg.transpose` of a splat constant with a
`arith.constant` of the transposed result shape.
Assisted-by: Cursor (GPT-5.5)
[Clang] Instantiate ParmVarDecls on-demand for FunctionParmPackExpr (#196919)
This is missed when we implemented CWG2369, where their instantiations
should be built in place when they are needed.
Fixes #173086
drm/amdgpu/vcn4: Avoid overflow on msg bound check
From Benjamin Cheng
271cd5429513ff9b364a9bf8903e5b65b687eb25 in linux-6.18.y/6.18.32
65bce27ea6192320448c30267ffc17ffa094e713 in mainline linux
drm/amdgpu/vcn3: Avoid overflow on msg bound check
From Benjamin Cheng
016b64a0313ea5346cf526e30c8d3e66aca10175 in linux-6.18.y/6.18.32
e6e9faba8100628990cccd13f0f044a648c303cf in mainline linux
drm/amdgpu: rework how we handle TLB fences
From Alex Deucher
f0d3bb6f5125c69ce872a7574afd6d9e1f7ea349 in linux-6.18.y/6.18.32
69c5fbd2b93b5ced77c6e79afe83371bca84c788 in mainline linux
Revert "drm/amdgpu: don't attach the tlb fence for SI"
From Prike Liang
13e9ea445191390269a6f092d009b68e086e601b in linux-6.18.y/6.18.32
9163fe4d790fb4e16d6b0e23f55b43cddd3d4a65 in mainline linux
drm/amdgpu: Fix validating flush_gpu_tlb_pasid()
From Timur Kristof
576b73b246564c8fa75572d45c1ed9b053b4be5b in linux-6.18.y/6.18.32
e3a6eff92bbd960b471966d9afccb4d584546d17 in mainline linux
drm/amdgpu: validate the flush_gpu_tlb_pasid()
From Prike Liang
fd78e63459ab6fe99b9fd026c420808d09eaa8be in linux-6.18.y/6.18.32
f4db9913e4d3dabe9ff3ea6178f2c1bc286012b8 in mainline linux
drm/amdgpu/pm: align Hawaii mclk workaround with radeon
From Alex Deucher
f8f546883e8777493157ccc4fac5794c502fcbd2 in linux-6.18.y/6.18.32
1987c79b4fe5789dfa14423e78b5c25f6acf3e9d in mainline linux
drm/amdgpu/pm: add missing revision check for CI
From Alex Deucher
6fed6e9f10622db34a18ee6ce155cbe0fa211b23 in linux-6.18.y/6.18.32
2a561b361b7681509710f3cfc3d95d54c87ac69f in mainline linux
drm/amdgpu/sdma4: replace BUG_ON with WARN_ON in fence emission
From John B. Moore
0b91ea46bb68abf98a082bf239092253bbd6aaa2 in linux-6.18.y/6.18.32
78d2e624fa073c14970aa097adcf3ea31c157a66 in mainline linux