This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Warning about __DATE__ and __TIME__
- From: Gerald Pfeifer <gerald at pfeifer dot com>
- To: gcc at gcc dot gnu dot org
- Date: Sun, 27 Oct 2013 20:04:31 +0100 (CET)
- Subject: Warning about __DATE__ and __TIME__
- Authentication-results: sourceware.org; auth=none
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