Page MenuHomeFreeBSD

sys/sys: Fix __builtin_is_aligned fallback
ClosedPublic

Authored by andrew on May 20 2024, 11:59 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jan 26, 5:55 AM
Unknown Object (File)
Mon, Jan 26, 5:13 AM
Unknown Object (File)
Sun, Jan 25, 2:16 PM
Unknown Object (File)
Mon, Jan 12, 10:45 PM
Unknown Object (File)
Dec 25 2025, 1:54 AM
Unknown Object (File)
Dec 19 2025, 5:00 PM
Unknown Object (File)
Dec 15 2025, 3:17 PM
Unknown Object (File)
Dec 12 2025, 3:20 AM
Subscribers
None

Details

Summary

When the compiler doesn't provide __builtin_is_aligned we use
macro as a fallback. The macro was missing brackets around one
argument. This could lead to incorrect results when the argument is
more complex than a single stagement.

Fix this by adding the needed brackets.

Sponsored by: Arm Ltd

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 57774
Build 54662: arc lint + arc unit