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


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


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