This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/68201] alloc_size attribute and memory pools
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 04 Nov 2015 09:13:51 +0000
- Subject: [Bug c/68201] alloc_size attribute and memory pools
- Auto-submitted: auto-generated
- References: <bug-68201-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68201
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
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 inlined).