This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Remove unnecessary casts
- From: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: gcc-patches at gcc dot gnu dot org, zack at codesourcery, jensmh at gmx dot com
- Date: Wed, 13 Nov 2002 20:48:04 -0500 (EST)
- Subject: Re: [patch] Remove unnecessary casts
> 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?
That is my understanding. I would like very much to retain the
capability to build gcc using the HP bundled compiler for the 3.3 release.
It was my understanding that the Steering Committee was going to review
the K&R compatibility issue again for 3.4.
Some casts are there just to prevent warnings. Casts involving enums
are in some cases required to prevent build errors. For example,
arithmetic comparisons of enums are not allowed with the vax pcc
compiler.
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)