Implement link-time optimization safe explicit_bzero()?

Jonathan Wakely jwakely.gcc@gmail.com
Fri Feb 12 10:59:00 GMT 2016


On 12 February 2016 at 10:42, Manuel López-Ibáñez wrote:
> On 12/02/16 06:21, Sebastian Huber wrote:
>> Ok, since I am not a compiler expert, I need an example for this.  My
>> first try was to search for the memset_s() builtin. However, this doesn't
>> seem to exist.  Is memset_s() supported at all by GCC currently?
>
>
> See
> https://gcc.gnu.org/git/?p=gcc.git;a=blob_plain;f=gcc/builtins.def;hb=HEAD
>
> memset_s is not there, so I guess it is not provided as a builtin, but
> implemented by the C library. Probably it is not LTO-safe either.

It's not provided by most C libraries. It's part of the "safe"
additions to C, but is broken by design.



More information about the Gcc-help mailing list