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]

Re: Today's K&R problem ... cpphash.c uses `signed'


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.

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