This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: [v3] updated atomic configury


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


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