This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [PATCH] Fix allocate 0 bytes on arches where malloc (0) returns NULL
On Mon, Oct 03, 2005 at 05:16:37AM -0400, Jakub Jelinek wrote:
> On Sun, Oct 02, 2005 at 09:53:30PM -0400, David Edelsohn wrote:
> > >>>>> Jakub Jelinek writes:
> >
> > Jakub> Does the following help?
> >
> > Jakub> * runtime/memory.c (allocate_size): Malloc 1 byte if size == 0.
> >
> > Yes, this patch appears to fix the regression.
>
> Ok for HEAD then?
OK (you could also have called this obvious, IMHO).
Thomas