[cfe-dev] sizeof(long) in OpenCL C

David Tweed david.tweed at arm.com
Fri Aug 30 10:00:45 PDT 2013


Hi,

| I notice that, with the patch applied, "long" has 64 bits, but
__INTPTR_TYPE__ is still defined as "long int" on ARM. This is now wrong; it
needs to be set to "int" instead. Do you have pointers for
| correcting this in clang?

Unfortunately not; implementation (even such simple things as choice of
size) of pointers for OpenCL devices is one of those "implementations may
make different choices" areas where things don't map cleanly to the standard
clang front-end.

Cheers,
Dave






More information about the cfe-dev mailing list