2026-12-04 Christopher Bazley * src/SDCCutil.c (appendStr, copyStrWithEscapeLimit, copyStrTo32): Share escape decoding between byte and wide strings. Preserve wide numeric code units without narrowing them to bytes (bug #4226). (utf_32_from_utf_8): Return a buffer the caller can free directly. (utf_16_from_utf_32): Preserve numeric surrogate code units. (copyStr): Retain unrestricted byte decoding for inline assembly. * src/SDCCutil.h: Update the decoder and UTF-8 conversion declarations. * src/SDCCval.c (strVal): Decode wide literals with copyStrTo32. Release the intermediate buffer after conversion to UTF-16. (charVal): Free the UTF-8 conversion buffer directly. * support/regression/tests/bug-4226.c: Test wide numeric escapes and check that byte strings retain their existing behaviour. 2026-12-04 Philipp Klaus Krause * src/SDCCcse.c, support/regression/tests/bug-4286.c: Fix bug #4286. * src/z80/gen.c, support/regression/tests/bug-4280.c: Fix bug #4280. * support/regression/tests/far_rabbit_pointers.c: Fix a test to account for improved diagnostics on implicit pointer casts. * src/mcs51/ralloc.c, support/regression/tests/bug-3286.c: Fix bug #3286, patch from https://github.com/mdmower/sdcc-triage/blob/main/patches/bugs-3286.patch. * src/hc08/gen.c: Fix codegen for conditional jumps on the result of binary or with volatile operands. 2026-12-04 Philipp Klaus Krause * support/regression/tests/bug-4279.c, support/regression/tests/bug-4280.c, support/regression/tests/bug-4281.c, support/regression/tests/bug-4282.c, support/regression/tests/bug-4283.c, support/regression/tests/bug-4286.c, support/regression/tests/bug-4287.c, support/regression/tests/bug-4288.c, support/regression/tests/bug-4289.c, support/regression/tests/bug-4290.c, support/regression/tests/bug-4291.c, support/regression/tests/bug-4292.c, support/regression/tests/bug-4301.c, support/regression/tests/bug-4302.c, support/regression/tests/bug-4303.c, support/regression/tests/bug-4305.c, support/regression/tests/bug-4306.c, support/regression/tests/bug-4307.c, support/regression/tests/bug-4308.c, support/regression/tests/bug-4309.c, support/regression/tests/bug-4310.c, support/regression/tests/bug-4311.c, support/regression/tests/bug-4312.c, support/regression/tests/bug-4313.c, support/regression/tests/bug-4314.c: Tests (not yet enabled) for recently reported bugs, from patch by Wojciech Dudek. 2026-12-03 Christopher Bazley * src/SDCCast.c (checkPtrCast): Diagnose implicit far-to-generic pointer conversions when the generic address space does not contain the far address space (bug #4106). (decorateType): Preserve explicit narrowing pointer casts during simplification. * src/SDCCsymt.c (compatibleInnerQualifiers): Check intrinsic address spaces through pointer indirection. * support/valdiag/tests/bug-4106.c: Test direct and indirect conversions, including arrays and permitted cases. 2026-12-03 Christopher Bazley * src/SDCCicode.c (ast2iCode): Restore the decorated pointer-to-array type after generating unary address-of for an array operand. * support/regression/tests/bug-4249.c: Test array address arithmetic, dereferenced post-increment, the reported comparison, row addresses and pointer subtraction. 2026-12-03 Gabriele Gorla * src/pic16/gen.c: Fix bug #4278. * src/pic16/device.c: Fix bug #4284. * src/pic16/gen.c: Fix bug #1385. * support/regression/tests/bug-2746.c: Enable regression for bug #2746. * support/regression/tests/bug-2747.c: Add regression test for bug #2747. * src/pic16/pcode.c: Fix bug #2543. * support/regression/cases/Makefile.in: Fix bug #4296. 2026-12-03 Philipp Klaus Krause * support/regression/tests/bitintvararg.c.in: