[cfe-dev] __thread keyword with target: powerpc-unknown-linux
Jacob Carlborg
doob at me.com
Thu May 29 03:44:30 PDT 2014
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
More information about the cfe-dev
mailing list