This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Today's K&R problem ... cpphash.c uses `signed'
- To: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- Subject: Re: Today's K&R problem ... cpphash.c uses `signed'
- From: Neil Booth <NeilB at earthling dot net>
- Date: Fri, 14 Jul 2000 06:42:35 +0900
- Cc: zack at wolery dot cumb dot org, gcc-patches at gcc dot gnu dot org
- References: <200007131920.PAA18027@caip.rutgers.edu>
I'm thinking of starting a file in the GCC directory called
README.Portability or PORTABLE.CODE or some such. It would contain a
few tips about writing portable code that can compile on the whole
range of compilers we have to compile on, based on past experience.
Things like this signed problem, unary +, empty arguments, etc. etc.
It will probably be mostly for my own benefit, but could come in
useful as a reference for others too further down the line. The
problem at the moment is that this knowledge is just inside various
people's heads, which has the effect that the problems keep recurring.
Would a patch be accepted to start such a file?
Neil.