[Patch: libcpp, c-family, Fortran] Re: Warning about __DATE__ and __TIME__
Tom Tromey
tromey@redhat.com
Wed Nov 6 16:02:00 GMT 2013
>>>>> "Tobias" == Tobias Burnus <burnus@net-b.de> writes:
Tobias> Updated version attached – after bootstrapping and regtesting on
Tobias> x86-64-gnu-linux
Tobias> OK?
Sorry, I didn't notice this until today.
Tobias> @@ -925,7 +928,8 @@ enum {
Tobias> CPP_W_NORMALIZE,
Tobias> CPP_W_INVALID_PCH,
Tobias> CPP_W_WARNING_DIRECTIVE,
Tobias> - CPP_W_LITERAL_SUFFIX
Tobias> + CPP_W_LITERAL_SUFFIX,
Tobias> + CPP_W_DATE_TIME
Tobias> };
I think this change requires a parallel change to c-family/c-common.c.
Tobias> + cpp_warning (pfile, CPP_W_DATE_TIME, "Macro \"%s\" might prevent "
Tobias> + "reproduce builds", NODE_NAME (node));
Tobias> + cpp_warning (pfile, CPP_W_DATE_TIME, "Macro \"%s\" might prevent "
Tobias> + "reproduce builds", NODE_NAME (node));
I think change "reproduce" to "reproducible" in these warnings.
Tom
More information about the Gcc-patches
mailing list