This is the mail archive of the gcc@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]

Warning about __DATE__ and __TIME__


To make it easier to reproduce builds of software and entire GNU/Linux 
distributions, RMS had the idea of adding a warning to GCC that warns 
about the use of __DATE__ and __TIME__.

Short of "interesting" changes to the environment or #defining these
two, as soon as a program uses __DATE__ or __TIME__ at least once,
builds of the program will differ for that reason alone.  (There are
others, but one step at a time; this is not the point of this mail).

I was thinking a new warning -Wdate-time or similar could address
this.

Any volunteers implementing this?

Gerald


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