]> git.ipfire.org Git - thirdparty/gcc.git/commit
[testsuite] test for weak_undefined support and add options
authorAlexandre Oliva <oliva@adacore.com>
Thu, 23 Mar 2023 03:45:05 +0000 (00:45 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Fri, 24 Mar 2023 04:14:30 +0000 (01:14 -0300)
commit378ec7b87a5265dbe2d489c245fac98ef37fa638
tree3acd00b204f616c57c61eff2272763908d831c53
parent3b67db31236631432e7f6d74ed49af9ae2183a4d
[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.
gcc/doc/sourcebuild.texi
gcc/testsuite/gcc.dg/addr_equal-1.c
gcc/testsuite/gcc.dg/torture/pr53922.c
gcc/testsuite/gcc.dg/torture/pr60092.c
gcc/testsuite/gcc.dg/torture/pr90020.c
gcc/testsuite/gcc.dg/vect/vect-tail-nomask-1.c
gcc/testsuite/gcc.target/aarch64/aapcs64/aapcs64.exp
gcc/testsuite/lib/target-supports.exp