On Sun, 27 Oct 2013, Tobias Burnus wrote:
I assume that he also likes to have a warning for __TIMESTAMP__.

So do I, but I asked to be sure.

Do you mean something like the attached patch? (Only lightly tested.)

Yep!  Thanks.

 +@item -Wdate-time
 +@opindex Wdate-time
 +@opindex Wno-date-time
 +Warn when macros __TIME__, __DATE__ or __TIMESTAP__ are encountered
 +as they might prevent bit-wise-identical reproducable compilations.

In addition to Andreas' comments, can you please make this "@code{__TIME__}, @code{__DATE__}, or @code{__TIMESTAP__}"
and then also send to gcc-patches@

Note on the naming:  That was just my first idea; other/better names
welcome.

Gerald

Reply via email to