[cfe-dev] Handling GCC __mode__

Daniel Dilts via cfe-dev cfe-dev at lists.llvm.org
Thu May 19 10:34:43 PDT 2016


I have to run a Clang tool against code that compiles against an RTOS.
Deep in the bowels of the RTOS std::uint64_t is eventually typedefed as
such:

typedef unsigned int _GCC_ATTR_ALIGN_u64t __attribute__((__mode__(__DI__)));

unsigned int is a 32-bit value, but _GCC_ATTR_ALIGN_u64t is a 64-bit
value.  After quite a bit of searching I learned that the __mode__
attribute is what is causing it to be 64-bits.

Does Clang support __mode__ or is there some other way for me to make it so
that Clang see _GCC_ATTR_ALIGN_u64t as 64-bits?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20160519/34b77421/attachment.html>


More information about the cfe-dev mailing list