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: Tcsh - Gentoo


Thank you!


2015-03-30 23:32 GMT+02:00 Jeff Epler <jepler@unpythonic.net>:
> 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 Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]