30_threads/thread/native_handle/typesizes.cc is no good
Iain Sandoe
iain@sandoe.co.uk
Fri May 10 18:57:00 GMT 2019
Hi Jonathan
> On 10 May 2019, at 15:20, Iain Sandoe <idsandoe@googlemail.com> wrote:
>
>> On 10 May 2019, at 14:57, Jonathan Wakely <jwakely.gcc@gmail.com> wrote:
>>
>> Resending as plaint text so the lists don't reject it …
>
>>> In order to test what it should, we'd need to use an alternate test
>>> function that does not strip off one indirection level from
>>> native_handle_type, if the test is to remain.
>>>
>>
>> Or just adapt the current test to work for the std::thread case too, by
>> only removing the pointer when we know we need to remove it, as in the
>> attached patch. Does this work on targets using a pointer type for
>> pthread_t?
>
> this will fix PR81266, if so, will add to my next run.
The attached minor update to the posted patch does this.
cheers
Iain
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr81266.diff
Type: application/octet-stream
Size: 974 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20190510/aca5daaf/attachment.obj>
More information about the Gcc-patches
mailing list