This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch: libcpp, c-family, Fortran] Re: Warning about __DATE__ and __TIME__
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: Tobias Burnus <burnus at net-b dot de>
- Cc: Gerald Pfeifer <gerald at pfeifer dot com>, gcc at gcc dot gnu dot org, gcc patches <gcc-patches at gcc dot gnu dot org>, gfortran <fortran at gcc dot gnu dot org>
- Date: Tue, 5 Nov 2013 12:17:46 -0800
- Subject: Re: [Patch: libcpp, c-family, Fortran] Re: Warning about __DATE__ and __TIME__
- Authentication-results: sourceware.org; auth=none
- References: <alpine dot LNX dot 2 dot 00 dot 1310271959580 dot 1528 at trevally dot site> <526D8110 dot 9040502 at net-b dot de> <52780A76 dot 4050702 at net-b dot de>
On Mon, Nov 04, 2013 at 09:58:30PM +0100, Tobias Burnus wrote:
> Tobias Burnus wrote:
> > Gerald Pfeifer wrote:
> >> 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__.
> >
> > I assume that he also likes to have a warning for __TIMESTAMP__.
> >
> >> I was thinking a new warning -Wdate-time or similar could address
> >> this. Any volunteers implementing this?
> > Do you mean something like the attached patch? (Only lightly tested.)
>
> Updated version attached ? after bootstrapping and regtesting on
> x86-64-gnu-linux
> OK?
>
Fortran bits are OK.
--
Steve