llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

[libc][c23] implement `memset_explicit`

Open SchrodingerZhu opened this issue 2 years ago • 2 comments

See:

  1. https://gustedt.gitlabpages.inria.fr/c23-library/
  2. n3088

I am currently working on this but I am still trying to make it clear about the assumptions/requirements of this function, given that [1] lists some suggestions that are seemingly too restrictive.

SchrodingerZhu avatar Feb 23 '24 19:02 SchrodingerZhu

@llvm/issue-subscribers-libc

Author: Schrodinger ZHU Yifan (SchrodingerZhu)

See: 1. https://gustedt.gitlabpages.inria.fr/c23-library/ 2. https://www.[open-std.org/jtc1/sc22/WG14/www/docs/n3088.pdf](https://www.open-std.org/jtc1/sc22/WG14/www/docs/n3088.pdf)

I am currently working on this but I still trying to make it clear about the assumptions/requirements of this function, given that [1] lists some suggestions that are seemingly too restrictive.

llvmbot avatar Feb 23 '24 19:02 llvmbot

Clang, just like GCC, has no __builtin_memset_explicit, I think this should be added for C23 support.

BreadTom avatar May 23 '26 23:05 BreadTom