diff options
author | Alexandre Oliva <oliva@adacore.com> | 2023-03-23 00:45:05 -0300 |
---|---|---|
committer | Alexandre Oliva <oliva@gnu.org> | 2023-03-24 01:14:30 -0300 |
commit | 378ec7b87a5265dbe2d489c245fac98ef37fa638 (patch) | |
tree | 3acd00b204f616c57c61eff2272763908d831c53 /libcpp | |
parent | 3b67db31236631432e7f6d74ed49af9ae2183a4d (diff) | |
download | gcc-378ec7b87a5265dbe2d489c245fac98ef37fa638.zip gcc-378ec7b87a5265dbe2d489c245fac98ef37fa638.tar.gz gcc-378ec7b87a5265dbe2d489c245fac98ef37fa638.tar.bz2 |
[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.
Diffstat (limited to 'libcpp')
0 files changed, 0 insertions, 0 deletions