[cfe-dev] __thread keyword with target: powerpc-unknown-linux

James Gregurich bayoubengal at mac.com
Wed Jun 11 17:42:03 PDT 2014


True. It was submitted since no one said "don't bother"

Sent from my iPad

> On May 29, 2014, at 5:44 AM, Jacob Carlborg <doob at me.com> wrote:
> 
>> On 2014-05-28 15:22, James Gregurich wrote:
>> howdy!
>> 
>> Is __thread suppose to work?  I got a crash which compiling libkqueue.
>> it is complaining about…
>> 
>> 
>> constchar*
>> kevent_dump(const struct kevent *kev)
>> {
>> static__threadcharbuf[1024];
>> 
>>     snprintf((char *) &buf[0], sizeof(buf),
>> "{ ident=%d, filter=%s, %s, %s, data=%d, udata=%p }",
>>             (u_int) kev->ident,
>>             kevent_filter_dump(kev),
>>             kevent_flags_dump(kev),
>>             kevent_fflags_dump(kev),
>>             (int) kev->data,
>>             kev->udata);
>> 
>> return ((const char *) &buf[0]);
>> }
>> 
>> 
>> I won’t bother submitting a bug report and a test file if __thread isn’t
>> properly implemented (at least on powerpc linux) yet.
> 
> In general, it's always a bug if a compiler crashes. It doesn't matter if a feature is supported or not, it shouldn't crash. If a feature isn't supported it should output an appropriate error message.
> 
> -- 
> /Jacob Carlborg
> 
> _______________________________________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev




More information about the cfe-dev mailing list