This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 30_threads/thread/native_handle/typesizes.cc is no good


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

Attachment: pr81266.diff
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]