This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Checking xmalloc's return status in c-pragma.c
- To: dstarner98 at aasaa dot ofe dot org
- Subject: Re: Checking xmalloc's return status in c-pragma.c
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Thu, 28 Oct 1999 03:02:44 -0600
- cc: gcc-patches at gcc dot gnu dot org
- Reply-To: law at cygnus dot com
In message <19991026234600.A8693@x8b4e53cd.dhcp.okstate.edu>you write:
>
> --ZPt4rx8FFjLCG7dd
> Content-Type: text/plain; charset=us-ascii
>
> push_alignment in c-pragma.c checks xmalloc's return status to
> see if there was enough memory to allocate something. Unfortunetly,
> if I'm not mistaken, xmalloc doesn't return if there wasn't enough
> memory. (I don't believe something this simple should call for
> a copyright assignment?)
>
> 1999-10-26 David Starner <dstarner98@aasaa.ofe.org>
>
> * c-pragma.c (push_alignment): Don't check the return value
> of xmalloc.
Thanks. Installed.
jeff