HomeDefectsLIN1023-13690
Fixed

LIN1023-13690 : Bug found in gcc sources for Aarch64 arch

Created: Jun 25, 2025    Updated: Oct 22, 2025
Resolved Date: Aug 25, 2025
Previous ID: LIN1022-16239
Found In Version: 10.23.30.3
Fix Version: 10.23.30.19
Severity: Standard
Applicable for: Wind River Linux LTS 23
Component/s: Toolchain, Userspace

Description

This bug found in GCC sources on Aarch64 arch with strict alignment option. This got fixed in gcc with below commit ID:
[https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103100]
[https://gcc.gnu.org/cgit/gcc/commit/?id=b9d16d8361a9e3a82a2f21e759e760d235d43322]

This bug fix was backported to the GCC 12 branch and is included in the 12.5 release. Since LTS23 uses GCC 12.5, the fix is already part of the LTS23 branch.

Steps to Reproduce

From attached bugzilla:
On aarch64, code example:
static void (*use)(unsigned char*); // to suppress optimizations

extern "C" void _start() {
    unsigned char t2[216]={};
    use(t2);
}

compiled with "gcc -save-temps -O2 -mstrict-align" will generate faulty assembly