Message ID | 20200709095739.GA12019@arm.com |
---|---|
State | New |
Headers | show |
Series | [1/6] AArch64: Fix bugs in -mcpu=native detection. | expand |
On 7/9/20 3:57 AM, Tamar Christina wrote: > Hi All, > > This document some of the existing DejaGnu directives to modify > environment variables before test or compiler invocations. > > Bootstrapped Regtested on aarch64-none-linux-gnu and no issues. > > Ok for master? > > Thanks, > Tamar > > gcc/ChangeLog: > > * doc/sourcebuild.texi (dg-set-compiler-env-var, > dg-set-target-env-var): Document. > Looks good to me. -Sandra
Tamar Christina <tamar.christina@arm.com> writes: > Hi All, > > This document some of the existing DejaGnu directives to modify > environment variables before test or compiler invocations. > > Bootstrapped Regtested on aarch64-none-linux-gnu and no issues. > > Ok for master? > > Thanks, > Tamar > > gcc/ChangeLog: > > * doc/sourcebuild.texi (dg-set-compiler-env-var, > dg-set-target-env-var): Document. OK, thanks. Richard
On Thu, 2020-07-09 at 10:57 +0100, Tamar Christina wrote: > Hi All, > > This document some of the existing DejaGnu directives to modify > environment variables before test or compiler invocations. > > Bootstrapped Regtested on aarch64-none-linux-gnu and no issues. > > Ok for master? > > Thanks, > Tamar > > gcc/ChangeLog: > > * doc/sourcebuild.texi (dg-set-compiler-env-var, > dg-set-target-env-var): Document. OK jeff
diff --git a/gcc/doc/sourcebuild.texi b/gcc/doc/sourcebuild.texi index 5b5b845afe6e8c8836bad73872797a10b4921cea..b025b3de186ce135d029bf0874ef420a90bb8fc2 100644 --- a/gcc/doc/sourcebuild.texi +++ b/gcc/doc/sourcebuild.texi @@ -1244,6 +1244,18 @@ This DejaGnu directive compares @var{regexp} to the combined output that the test executable writes to @file{stdout} and @file{stderr}. @end table +@subsubsection Specify environment variables for a test + +@table @code +@item @{ dg-set-compiler-env-var @var{var_name} "@var{var_value}" @} +Specify that the environment variable @var{var_name} needs to be set +to @var{var_value} before invoking the compiler on the test file. + +@item @{ dg-set-target-env-var @var{var_name} "@var{var_value}" @} +Specify that the environment variable @var{var_name} needs to be set +to @var{var_value} before execution of the program created by the test. +@end table + @subsubsection Specify additional files for a test @table @code