Throughout the compiler testsuite there are several directories whose tests are run multiple times, each with a different set of options. These are known as torture tests. gcc/testsuite/lib/torture-options.exp defines procedures to set up these lists:
torture-initset-torture-optionstorture-finishThe .exp file for a set of tests that use torture options must include calls to these three procecures if:
gcc-dg-runtest and overrides DG_TORTURE_OPTIONS.
-torture or
${tool}-torture-execute, where tool is c,
fortran, or objc.
dg-pch.
It is not necessary for a .exp file that calls gcc-dg-runtest
to call the torture procedures if the tests should use the list in
DG_TORTURE_OPTIONS defined in gcc-dg.exp.
Most uses of torture options can override the default lists by defining TORTURE_OPTIONS in a .dejagnurc file.