[v3] updated atomic configury
Andrew MacLeod
amacleod@redhat.com
Tue Nov 22 19:06:00 GMT 2011
On 11/22/2011 10:32 AM, Joseph S. Myers wrote:
> On Tue, 22 Nov 2011, Andrew MacLeod wrote:
>
>> C currently doesn't have a char16_t and char32_t, so they aren't defined
> It certainly does have those types, as typedefs defined in<uchar.h> for
> the same types as uint_least16_t and uint_least32_t. And<stdatomic.h> is
> also required to define ATOMIC_CHAR16_T_LOCK_FREE and
> ATOMIC_CHAR32_T_LOCK_FREE.
but there isn't a stdatomic.h until we support C1x right? didnt we bail
on that last release until things were more settled? I just presumed
that those types are part of C1x and then fix it all up for C1x support
in the next release since I don't think we are yet.
> Your code in c-cppbuiltin.c appears to be using sizeof applied to *host*
> types, which is definitely wrong. You need to examine the precision of
> the relevant tree nodes.
>
hmm, yeah I was thinking that file was compiled for the target, so it
would work. Guess its a host file so I do need to look at the nodes
instead:-P
More information about the Gcc-patches
mailing list