[committed] libstdc++: Use custom timespec in system calls [PR 93421]

Jonathan Wakely jwakely@redhat.com
Wed Nov 18 20:22:53 GMT 2020


On 18/11/20 00:01 +0000, Jonathan Wakely wrote:
>On 14/11/20 14:23 +0000, Jonathan Wakely wrote:
>>On Sat, 14 Nov 2020, 13:30 Mike Crowe wrote:
>>>> @@ -195,7 +205,7 @@ namespace
>>>>           if (__s.count() < 0) [[unlikely]]
>>>>             return false;
>>>>
>>>> -         struct timespec rt;
>>>> +         syscall_timespec rt;
>>>>           if (__s.count() > __int_traits<time_t>::__max) [[unlikely]]
>>>>             rt.tv_sec = __int_traits<time_t>::__max;
>>>
>>>Do these now need to be __int_traits<long>::__max in case time_t is 64-bit
>>>yet syscall_timespec is using 32-bit long?
>>>
>>
>>Ah yes. Maybe decltype(rt.tv_sec).
>
>I'll fix that in the next patch.

And here's that next patch. I'm testing this and will commit if all
goes well.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 2897 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20201118/e69a9d81/attachment.bin>


More information about the Gcc-patches mailing list