Re: [committed] libstdc++: Add "futex" and "gthreads" effective-target keywords

2020-11-26 Thread Jonathan Wakely via Gcc-patches
On 26/11/20 17:10 +, Jonathan Wakely wrote: On 26/11/20 16:25 +, Jonathan Wakely wrote: +# Return 1 if futex syscall is available +proc check_effective_target_gthreads { } { +return [check_v3_target_gthreads_timed] Oops, I've just noticed the comment is wrong and this calls the wro

Re: [committed] libstdc++: Add "futex" and "gthreads" effective-target keywords

2020-11-26 Thread Jonathan Wakely via Gcc-patches
On 26/11/20 16:25 +, Jonathan Wakely wrote: +# Return 1 if futex syscall is available +proc check_effective_target_gthreads { } { +return [check_v3_target_gthreads_timed] Oops, I've just noticed the comment is wrong and this calls the wrong proc. It should be check_v3_target_gthreads no

[committed] libstdc++: Add "futex" and "gthreads" effective-target keywords

2020-11-26 Thread Jonathan Wakely via Gcc-patches
This adds a new "futex" effective-target keyword that can be used to selectively enable/disable tests based on _GLIBCXX_HAVE_LINUX_FUTEX, instead of checking for that macro in the code. It also adds "gthreads" as another one, to make the result of the dg-require-gthreads directive usable in target