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, Mar 30, 12:39 AM
Unknown Object (File)
Sun, Mar 15, 3:09 AM
Unknown Object (File)
Sat, Mar 14, 9:15 PM
Unknown Object (File)
Wed, Mar 11, 10:36 AM
Unknown Object (File)
Tue, Mar 10, 10:43 PM
Unknown Object (File)
Sat, Mar 7, 8:13 PM
Unknown Object (File)
Feb 24 2026, 11:29 AM
Unknown Object (File)
Feb 23 2026, 10:01 PM
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 Not Applicable
Unit
Tests Not Applicable