Re: [PATCH] __attribute_malloc__ for malloc-like functions
| From: | Sascha Schumann | Date: | Thu, 28 Aug 2003 11:49:48 +0000 |
| Subject: | Re: [PATCH] __attribute_malloc__ for malloc-like functions | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-4222@lists.php.net to get a copy of this message | ||
On Thu, 28 Aug 2003, Ard Biesheuvel wrote:
> > attribute((malloc)) is now enabled in CVS. Note that
> > erealloc was excluded.
>
> I used __attribute_malloc__ intentionally, because it is also supported
> by GCC 2.
A helpful comment from ansidecl.h:
Attribute __malloc__ on functions was valid as of gcc 2.96.
I've confirmed that __attribute__((malloc)) is accepted
whereas __attribute_malloc__ is not. The inconsistency does
not surprise me considering the overall quality of GCC 2.96.
Anyway, I'll refine the version check later.
- Sascha