Re: [PATCH 1/2] Compiler Attributes: Add __access macro
From: Miguel Ojeda
Date: Wed Apr 22 2026 - 06:31:25 EST
On Wed, Apr 22, 2026 at 12:25 PM Miguel Ojeda
<miguel.ojeda.sandonis@xxxxxxxxx> wrote:
>
> Which is exactly the one we use in #2, indeed.
>
> That makes sense, thanks!
>
> We should still change the number here, because `__has_attribute` will
> pass even with GCC 10, i.e. since someone using `none` without a gate
> in Kconfig or elsewhere may not realize the mistake.
>
> So we should probably add a comment that the access mode `none` is
> only available in GCC 11 -- especially so if we add the docs David
> suggests, because otherwise it seems like it is supported.
Either that or we simply move it to `compiler-gcc.h` or similar with a
`GCC_VERSION` check instead.
...which given what Marco is saying in a sibling comment, may be needed anyway.
Cheers,
Miguel