]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Use __is_single_threaded() in performance tests
authorJonathan Wakely <jwakely@redhat.com>
Wed, 13 Nov 2024 16:37:24 +0000 (16:37 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 13 Nov 2024 17:58:50 +0000 (17:58 +0000)
commit2b92007016ce8de3fc0a8c4508a789b822ea8e6b
tree490b1ec090e4c0a2c0258c2d18e5c2f80d704b7d
parent8586e16154f17df56ba6008c2ffe104bd03dd698
libstdc++: Use __is_single_threaded() in performance tests

With recent glibc releases the __gthread_active_p() function is always
true, so we always append "-thread" onto performance benchmark names.

Use the __gnu_cxx::__is_single_threaded() function instead.

libstdc++-v3/ChangeLog:

* testsuite/util/testsuite_performance.h: Use
__gnu_cxx::__is_single_threaded instead of __gthread_active_p().
libstdc++-v3/testsuite/util/testsuite_performance.h