This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Remove unnecessary casts
- From: Zack Weinberg <zack at codesourcery dot com>
- To: Jens-Michael Hoffmann <jensmh at gmx dot de>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 13 Nov 2002 16:38:27 -0800
- Subject: Re: [patch] Remove unnecessary casts
- References: <200211140127.48152.jensmh@gmx.de>
Jens-Michael Hoffmann <jensmh@gmx.de> writes:
> hi,
>
> attached is a patch to mainly remove unnecessary casts in a number of files.
> There are more patches on this subject to come.
> Bootstrapped and tested on i686-pc-linux-gnu.
Most of these (I only skimmed your patch) cast the return value of a
memory allocation function. It is my understanding that these casts
are still necessary, since we are still requiring the ability to
build GCC with a K+R compiler, which has no concept of "void *".
Can someone confirm/deny this?
zw