[testsuite] test for weak_undefined support and add options
A number of tests that depend on weak undefined symbols fail to require that support, and arrange to skip some targets and add special options to others on a test-by-test basis. Fix this by stating the requirement explicitly, and adding a proc to return any required options. Others rely on weak undefined symbols only to test for the availability of posix_memalign. Drop that in favor of dg effective target support for posix_memalign. for gcc/ChangeLog * doc/sourcebuild.texi (weak_undefined, posix_memalign): Document options and effective targets. for gcc/testsuite/ChangeLog * lib/target-supports.exp (add_options_for_weak_undefined): New. (check_effective_target_weak_undefined): Use it. (check_effective_target_posix_memalign): New. * gcc.dg/torture/pr53922.c: Drop skips and custom options in favor of effective target requirement and added options for weak_undefined symbols. * gcc.dg/torture/pr90020.c: Likewise. * gcc.dg/addr_equal-1.c: Likewise. * gcc.target/aarch64/aapcs64/aapcs64.exp: Likewise, for abitest.S-using tests. * gcc.dg/torture/pr60092.c: Likewise, but in favor of posix_memalign tests. * gcc.dg/vect/vect-tail-nomask-1.c: Likewise.
Showing
- gcc/doc/sourcebuild.texi 9 additions, 0 deletionsgcc/doc/sourcebuild.texi
- gcc/testsuite/gcc.dg/addr_equal-1.c 2 additions, 3 deletionsgcc/testsuite/gcc.dg/addr_equal-1.c
- gcc/testsuite/gcc.dg/torture/pr53922.c 2 additions, 8 deletionsgcc/testsuite/gcc.dg/torture/pr53922.c
- gcc/testsuite/gcc.dg/torture/pr60092.c 2 additions, 10 deletionsgcc/testsuite/gcc.dg/torture/pr60092.c
- gcc/testsuite/gcc.dg/torture/pr90020.c 2 additions, 5 deletionsgcc/testsuite/gcc.dg/torture/pr90020.c
- gcc/testsuite/gcc.dg/vect/vect-tail-nomask-1.c 2 additions, 9 deletionsgcc/testsuite/gcc.dg/vect/vect-tail-nomask-1.c
- gcc/testsuite/gcc.target/aarch64/aapcs64/aapcs64.exp 10 additions, 7 deletionsgcc/testsuite/gcc.target/aarch64/aapcs64/aapcs64.exp
- gcc/testsuite/lib/target-supports.exp 25 additions, 3 deletionsgcc/testsuite/lib/target-supports.exp
Loading
Please register or sign in to comment