[Patch: libcpp, c-family, Fortran] Re: Warning about __DATE__ and __TIME__

Tobias Burnus burnus@net-b.de
Mon Nov 4 20:58:00 GMT 2013


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?

Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wdate-time.diff
Type: text/x-patch
Size: 8630 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20131104/be9b993f/attachment.bin>


More information about the Gcc mailing list