]> git.ipfire.org Git - thirdparty/gcc.git/commit
Check for sysconf decl on vxworks
authorAlexandre Oliva <oliva@adacore.com>
Wed, 24 May 2023 06:07:41 +0000 (03:07 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Wed, 24 May 2023 06:07:41 +0000 (03:07 -0300)
commit7c1457c78c465ae0f96a18af602ddd812bfb39cd
tree25de3ec72893eb1dbe0bf03c39cd16c5d8b6d45c
parente55c134ebeef2fa23ad5f4d8afa36b5949b2852c
Check for sysconf decl on vxworks

The sysconf function is only available in rtp mode on vxworks.  In
kernel mode, it is not even declared, but the feature test macro in
the testsuite doesn't notice its absence because it's a link test, and
vxworks kernel mode uses partial linking.

This patch introduces an alternate test on vxworks targets to check
for a declaration and for an often-used sysconf parameter.

for  gcc/testsuite/ChangeLog

* lib/target-supports.exp (check_effective_target_sysconf):
Check for declaration and _SC_PAGESIZE on vxworks.
gcc/testsuite/lib/target-supports.exp