Tcsh - Gentoo

Jeff Epler jepler@unpythonic.net
Mon Mar 30 21:33:00 GMT 2015


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



More information about the Gcc-help mailing list