Attribute for custom memset function

Florian Weimer fweimer@redhat.com
Wed Sep 10 06:22:20 GMT 2025


* Chris Packham via Gcc:

> Is there any attribute I can set on the memset like functions that will let
> gcc know to perform the same kinds of checks as the standard memset
> function?

There's the “access” function attribute.  It covers at least some
aspects.

Thanks,
Florian



More information about the Gcc mailing list