[Bug c/68201] alloc_size attribute and memory pools

bugzilla@poradnik-webmastera.com gcc-bugzilla@gcc.gnu.org
Wed Nov 4 11:25:00 GMT 2015


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68201

--- Comment #2 from Daniel Fruzynski <bugzilla@poradnik-webmastera.com> ---
What about code compiled with -D_FORTIFY_SOURCE=1, when functions like strcpy
are replaced with __builtin___strcpy_chk? This is a runtime check, so passing
pool->block_size should be reasonable there.

Inlining requirement for pool_alloc is OK for me. Make sure it will be
documented in gcc manual.


More information about the Gcc-bugs mailing list