https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116992

--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>:

https://gcc.gnu.org/g:9a5ac633f0f49c819f2745584475051c9eb8f6e0

commit r15-4211-g9a5ac633f0f49c819f2745584475051c9eb8f6e0
Author: Jonathan Wakely <jwak...@redhat.com>
Date:   Mon Oct 7 10:22:24 2024 +0100

    libstdc++: Ignore _GLIBCXX_USE_POSIX_SEMAPHORE if not supported [PR116992]

    If _GLIBCXX_HAVE_POSIX_SEMAPHRE is undefined then users get an error
    when defining _GLIBCXX_USE_POSIX_SEMAPHORE. We can just ignore it
    instead (and warn them it's being ignored).

    This fixes a testsuite failure on hppa64-hp-hpux11.11 (and probably some
    other targets):

    FAIL: 30_threads/semaphore/platform_try_acquire_for.cc  -std=gnu++20 (test
for excess errors)
    Excess errors:
    semaphore:49: error: '__semaphore_impl' has not been declared

    libstdc++-v3/ChangeLog:

            PR libstdc++/116992
            * include/bits/semaphore_base.h (_GLIBCXX_USE_POSIX_SEMAPHORE):
            Undefine and issue a warning if POSIX sem_t is not supported.
            * testsuite/30_threads/semaphore/platform_try_acquire_for.cc:
            Prune new warning.

Reply via email to