This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]