Re: Implement link-time optimization safe explicit_bzero()?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux