This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gfortran] Add malloc and free intrinsics
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Steven Bosscher <stevenb at suse dot de>
- Cc: fortran at gcc dot gnu dot org, Fran?ois-Xavier Coudert <fxcoudert at gmail dot com>, patch <gcc-patches at gcc dot gnu dot org>, Asher Langton <langton2 at llnl dot gov>
- Date: Sat, 29 Oct 2005 13:15:55 -0700
- Subject: Re: [gfortran] Add malloc and free intrinsics
- References: <19c433eb0509260616244ca03d@mail.gmail.com> <20051029193557.GA10686@troutmask.apl.washington.edu> <200510292159.47056.stevenb@suse.de>
On Sat, Oct 29, 2005 at 09:59:46PM +0200, Steven Bosscher wrote:
> On Saturday 29 October 2005 21:35, Steve Kargl wrote:
> > What is the expected behavior for negative
> > values? What happens if malloc(*size) fails and returns
> > NULL?
>
> We chatted a bit on IRC a bit and found out that what we probably
> want, is for MALLOC to silently return 0 in all error conditions
> (negative values, OOM, etc.). No errors or warnings, just return 0.
>
Agreed.
--
Steve