This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


>>>>> "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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]