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)
Tue, Apr 22, 9:46 AM
Unknown Object (File)
Tue, Apr 22, 8:38 AM
Unknown Object (File)
Tue, Apr 22, 6:48 AM
Unknown Object (File)
Tue, Apr 22, 3:57 AM
Unknown Object (File)
Mar 6 2025, 2:34 AM
Unknown Object (File)
Feb 22 2025, 2:14 PM
Unknown Object (File)
Feb 22 2025, 2:02 PM
Unknown Object (File)
Feb 22 2025, 2: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