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: [patch] Remove unnecessary casts


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


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