[Patch: libcpp, c-family, Fortran] Re: Warning about __DATE__ and __TIME__
Steve Kargl
sgk@troutmask.apl.washington.edu
Tue Nov 5 20:17:00 GMT 2013
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
More information about the Gcc
mailing list