This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [gfortran] Add malloc and free intrinsics


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]