SUNDAY, APRIL 19, 2026 GCC DIGEST · OPEN-SOURCE SYSTEMS DAILY VOL. 1 · NO. 109
Late Edition · APRIL 19, 2026 · VOL. 1 · NO. 109
The GCC Digest
— A Daily Record of the GNU Compiler Collection —
gcc Impact 5 / 10

Fix incorrect length for __builtin_bswap16.

Corrects the instruction length attribute for `__builtin_bswap16` on Microblaze to prevent scheduling errors.

The bswaphi pattern, corresponding to __builtin_bswap16, was missing the length attribute, causing the compiler to assume a default length of 8 bytes. On Microblaze, this could lead to the 8-byte bswaphi instruction being incorrectly scheduled into a branch instruction’s delay slot, which only accommodates 4-byte instructions. This patch corrects the length attribute, preventing this scheduling error.

Filed Under: microblazebswap16schedulingoptimization