https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93456
--- Comment #3 from CVS 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:b8d36dcc917e8a06d8c20b9f5ecc920ed2b9e947 commit r11-5021-gb8d36dcc917e8a06d8c20b9f5ecc920ed2b9e947 Author: Jonathan Wakely <jwak...@redhat.com> Date: Fri Nov 13 20:57:15 2020 +0000 libstdc++: Remove redundant overflow check for futex timeout [PR 93456] The relative_timespec function already checks for the case where the specified timeout is in the past, so the difference can never be negative. That means we dn't need to check if it's more negative than the minimum time_t value. libstdc++-v3/ChangeLog: PR libstdc++/93456 * src/c++11/futex.cc (relative_timespec): Remove redundant check negative values. * testsuite/30_threads/future/members/wait_until_overflow.cc: Moved to... * testsuite/30_threads/future/members/93456.cc: ...here.