aboutsummaryrefslogtreecommitdiff
path: root/libgcc
diff options
context:
space:
mode:
authorAlexandre Oliva <oliva@adacore.com>2024-04-18 08:01:04 -0300
committerAlexandre Oliva <oliva@gnu.org>2024-04-18 08:05:57 -0300
commit5dfbc05c4a8da4a177056c57e13e5050c637056e (patch)
tree42ead2162a1090f3572e458bcbb74f0ffb87da6b /libgcc
parentdcf0bd14cda706be8d0c18963812beefca51df39 (diff)
downloadgcc-5dfbc05c4a8da4a177056c57e13e5050c637056e.zip
gcc-5dfbc05c4a8da4a177056c57e13e5050c637056e.tar.gz
gcc-5dfbc05c4a8da4a177056c57e13e5050c637056e.tar.bz2
[testsuite] introduce strndup effective target
A number of tests that call strndup fail on vxworks, where there's no strndup. Some of them already had workarounds to skip the strndup parts of the tests on platforms that don't offer it. I've changed them to rely on a strndup effective target instead, and extended the logic to other tests that were otherwise skipped entirely. for gcc/ChangeLog * doc/sourcebuild.texi (strndup): Add effective target. for gcc/testsuite/ChangeLog * lib/target-supports.exp (check_effective_target_strndup): New. * gcc.dg/builtin-dynamic-object-size-0.c: Skip strndup tests when the function is not available. * gcc.dg/builtin-dynamic-object-size-1.c: Likewise. * gcc.dg/builtin-dynamic-object-size-2.c: Likewise. * gcc.dg/builtin-dynamic-object-size-3.c: Likewise. * gcc.dg/builtin-dynamic-object-size-4.c: Likewise. * gcc.dg/builtin-object-size-1.c: Likewise. * gcc.dg/builtin-object-size-2.c: Likewise. * gcc.dg/builtin-object-size-3.c: Likewise. * gcc.dg/builtin-object-size-4.c: Likewise.
Diffstat (limited to 'libgcc')
0 files changed, 0 insertions, 0 deletions