public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/97182] New: Add support for targets that only define SYS_futex_time64 and not SYS_futex
@ 2020-09-23 17:23 redi at gcc dot gnu.org
  2020-09-23 17:28 ` [Bug libstdc++/97182] " redi at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: redi at gcc dot gnu.org @ 2020-09-23 17:23 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 97182
           Summary: Add support for targets that only define
                    SYS_futex_time64 and not SYS_futex
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: redi at gcc dot gnu.org
  Target Milestone: ---

I'm told this affects 32-bit RISC-V.

If SYS_futex isn't defined then libstdc++ won't use futexes, even though they
might be available via the new SYS_futex_time64 syscall instead.

The autoconf checks for SYS_futex should be updated to look for
SYS_futex_time64 as well, and then src/c++11/futex.cc needs to use the best one
available, and possibly have a fallback for the case where both were defined at
configure time but one returns ENOSYS at runtime. Ugh.

This probably also affects our uses of SYS_clock_gettime in both
src/c++11/futex.cc and src/c++11/chrono.cc

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-09-24 23:09 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-23 17:23 [Bug libstdc++/97182] New: Add support for targets that only define SYS_futex_time64 and not SYS_futex redi at gcc dot gnu.org
2020-09-23 17:28 ` [Bug libstdc++/97182] " redi at gcc dot gnu.org
2020-09-23 18:47 ` jakub at gcc dot gnu.org
2020-09-23 19:27 ` wilson at gcc dot gnu.org
2020-09-23 19:35 ` jakub at gcc dot gnu.org
2020-09-24 23:09 ` wilson at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).