https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120850
Bug ID: 120850 Summary: provide an special __builtin_memset_explicit Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: crrodriguez at opensuse dot org Target Milestone: --- It is not possible for library to implement memset_explicit as specified on the C23 standard..because it is up to the compiler to honour the "never elided, regardless of optimizations" part. unless this is a special function known to the compiler it still be subject to optimizations that will break this rules.