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: Tom Tromey <tromey at redhat dot com>
- 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: Wed, 06 Nov 2013 08:37:22 -0700
- 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>
>>>>> "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