> On 29 Dec 2020, at 11:26, Richard Sandiford via Gcc-patches
> <gcc-patches@gcc.gnu.org> wrote:
>
> Alexandre Oliva <ol...@adacore.com> writes:
>> Explicitly disable some vxworks-missing features in the testsuite, that
>> the current feature tests detect as present.
>>
>> Regstrapped on x86_64-linux-gnu, and tested with -x-arm-wrs-vxworks7r2.
>> Ok to install?
>>
>>
>> from Olivier Hainque <hain...@adacore.com>
>> for gcc/testsuite/ChangeLog
>>
>> * lib/target-supports.exp (check_weak_available,
>> check_fork_available, check_effective_target_lto,
>> check_effective_target_mempcpy): Add vxworks filters.
>
> This comes under Olivier's maintainership, but LGTM.
(With a bit of delay after the end-of-year break and
backlog + activity recovery ...)
Thanks for your input on this Richard.
We're discussing possible ways to improve symbol availability
detection, so we could get rid of the bits like:
>> proc check_effective_target_mempcpy {} {
>> + if { [istarget *-*-vxworks*] } {
>> + # VxWorks doesn't have mempcpy but our way to test fails
>> + # to detect as we're doing partial links for kernel modules.
>> + return 0
>> + }
>> return [check_function_available "mempcpy"]
>> }
Olivier