Allow embedded timestamps by C/C++ macros to be set externally (3)

Jakub Jelinek jakub@redhat.com
Mon May 9 10:42:00 GMT 2016


On Mon, May 09, 2016 at 12:38:14PM +0200, Bernd Schmidt wrote:
> On 05/09/2016 12:23 PM, Bernd Schmidt wrote:
> >On 05/06/2016 01:38 AM, Dhole wrote:
> >>I've wrote a test case which fails (when it shouldn't) and I don't see
> >>why.
> >
> >I think it's setting the env var when executing the test, not when
> >executing the compiler.
> 
> Here's something that seems to work (with an appropriately adjusted
> testcase). Cc'ing testsuite maintainers.

Wouldn't it be better to add a more general directive, e.g. one that would
allow setting any env var for the compiler, rather than one specific,
similarly to how dg-set-target-env-var allows any env var to be set for the
execution?  dg-set-compiler-env-var ?

	Jakub



More information about the Gcc-patches mailing list