bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: list, set, oset, map, omap: Prepare for allocation-deallocation chec


From: Paul Eggert
Subject: Re: list, set, oset, map, omap: Prepare for allocation-deallocation checking
Date: Mon, 9 Aug 2021 03:35:51 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0

On 8/7/21 3:02 PM, Bruno Haible wrote:
The GCC documentation [1] says that the attribute 'malloc (deallocator, 1)'
does not work on inline functions. IMO, this restriction is not tenable in
the long run (because the semantics of a function don't depend on whether
it is inline or not, and because in C++ the majority of all functions is
inline).

Yes, this problem also annoyed me. I uninlined the relevant functions, but that's not always a reasonable thing to do, performance-wise.

I submitted a GCC bug report for this issue, here:

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]