Re: [PATCH] Compiler Attributes: Add __counted_by macro

From: Kees Cook
Date: Thu May 04 2023 - 19:44:30 EST


On May 4, 2023 11:27:32 AM PDT, Miguel Ojeda <miguel.ojeda.sandonis@xxxxxxxxx> wrote:
>On Thu, May 4, 2023 at 8:16 PM Kees Cook <keescook@xxxxxxxxxxxx> wrote:
>>
>> + * Optional: future support coming in clang 17 and gcc 14
>
>Should we just say:
>
> Optional: only supported since clang >= 17
> Optional: only supported since gcc >= 14
>
>even if they are in the future? That way we avoid changing it later.
>If somebody asks, you already say it it is in the future the commit
>message, so it should be clear enough... :)
>
>And if the compilers end up not supporting it on those versions for
>some unexpected reason, well, we will need to fix the comment either
>way.

Yeah, fair point!

>
>(I can change it on my side if you prefer)

Sure, thanks! (But I'm happy to send a v2 if that's easier for you, too.)

-Kees



--
Kees Cook