This is the mail archive of the
mailing list for the GCC project.
Re: are malloc/new calls annotated if they may return NULL?
- From: Ian Lance Taylor <ian at airs dot com>
- To: tromey at redhat dot com
- Cc: Diego Novillo <dnovillo at redhat dot com>, GCC Mailing List <gcc at gcc dot gnu dot org>
- Date: 17 Jan 2005 13:05:35 -0500
- Subject: Re: are malloc/new calls annotated if they may return NULL?
- References: <41EBDDED.firstname.lastname@example.org><email@example.com>
Tom Tromey <firstname.lastname@example.org> writes:
> >>>>> "Diego" == Diego Novillo <email@example.com> writes:
> Diego> Do we annotate in the IL malloc/new calls that are guaranteed to never
> Diego> return NULL?
> Interestingly, when I look through gcc/gcc, I can't find any real uses
> of DECL_IS_MALLOC. Some code sets it, and some code tests it to copy
> the flag to a new decl, but nothing actually seems to use it. Am I
> missing something?
handle_malloc_attribute() in c-common.c.