Re: Tcsh - Gentoo

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

 



gcc treats functions like malloc and memset as builtin functions.
malloc + memset in this fashion is equivalent to calloc, and so gcc
transforms the function's body appropriately.

Use -fno-builtin or -fno-builtin-FUNCTION to inhibit this optimization.

It is a known limitation of gcc that -fno-builtin cannot be applied via
function attributes or pragmas.

Jeff




[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