HomeFreeBSD

sys/sys: Fix __builtin_is_aligned fallback

Description

sys/sys: Fix __builtin_is_aligned fallback

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.

Reviewed by: brooks, imp, jhb
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D45260

Details

Provenance
andrewAuthored on May 22 2024, 8:18 AM
Reviewer
brooks
Differential Revision
D45260: sys/sys: Fix __builtin_is_aligned fallback
Parents
rG53120fbb6895: csu: Find the main pointer through the GOT
Branches
Unknown
Tags
Unknown