[PATCH] Fix allocate 0 bytes on arches where malloc (0) returns NULL

David Edelsohn dje@watson.ibm.com
Mon Oct 3 01:53:00 GMT 2005


>>>>> 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.

Thanks, David



More information about the Gcc-patches mailing list