gcc.target/arm/g2.c is an xscale-only test, but the test is quite old and we have improved the infrastructure for setting up such tests now. So make use of that to reduce the number of cases where this test fails to run. gcc/testsuite: * lib/target-supports.exp (check_effective_target_arm_arch_FUNC_ok): Add entry to check for xscale. * gcc.target/arm/g2.c: Use it. --- gcc/testsuite/gcc.target/arm/g2.c | 10 ++++------ gcc/testsuite/lib/target-supports.exp | 1 + 2 files changed, 5 insertions(+), 6 deletions(-)