[Bug c/68201] alloc_size attribute and memory pools

2018-09-14 Thread msebor at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68201 Martin Sebor changed: What|Removed |Added CC||msebor at gcc dot gnu.org Sever

[Bug c/68201] alloc_size attribute and memory pools

2015-11-04 Thread bugzi...@poradnik-webmastera.com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68201 --- Comment #2 from Daniel Fruzynski --- 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. Inl

[Bug c/68201] alloc_size attribute and memory pools

2015-11-04 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68201 --- Comment #1 from Richard Biener --- As GCC uses the attribute for static analysis it can't go out and read the actual value from pool->block_size so I see no value in providing the size this way (it would also only work if pool_alloc is inline