On Thu, Oct 12, 2006 at 10:44:59PM -0700, Mohamed Shafi wrote: > Hello all, > > During regression tests if i want to disable some features like trampolines i > can give -DNO_TRAMPOLINES > as an compiler flag.
By default, -DNO_TRAMPOLINES is set in testsuite/lib/gcc.exp if the DejaGnu target info reports that the support doesn't exist. The only other feature treated this way is no_label_values. > Do i have similar flags for profiling and PIC? Not for the user to disable them, although tests for these features check whether the support is available to the target. The procs that check for the support are check_profiling_available and check_effective_target_fpic in testsuite/lib/target-supports.exp. The .exp files for profiling tests call check_profiling_available and skip the directory if that proc returns 0. "fpic" is an effective-target keyword that can be used alone or in combination with other target information to limit when a test is run, e.g. "{ dg-do run { target fpic } }". There's no way to disable tests for these features if the procs in target-supports.exp claim that they are supported. If your target doesn't support them, you can modify those procs to skip the tests. Janis