RE: Is there a way to use __builtin___memcpy_chk() for compiler-generated memcpy calls?

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

 



> On Mon, 15 Jan 2024 at 11:21, Dallman, John via Gcc-help <gcc-help@xxxxxxxxxxx> wrote:

> > a) Struct copying, with memcpy calls inserted by the compiler.
> > b) memcpy calls in the C++ Standard Template Library.
> > Is there a way to ask GCC to use __builtin___memcpy_chk() in 
> > place of plain memcpy() for either of these?
> I don't know about the first, but for the second, no, that would require code 
> changes to libstdc++. There's no way to make that happen automatically.

Makes sense. Getting the first changed would be a step forwards, if that's possible. Anyone know of a way? 

Thanks, 

-- 
John Dallman





[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