[cfe-dev] Targets where sizeof(_Atomic X) != sizeof(X) ?

Craig, Ben via cfe-dev cfe-dev at lists.llvm.org
Mon Apr 4 06:58:36 PDT 2016


The C11 standard permits sizeof(_Atomic char) to be different from 
sizeof(char).  Are there any targets where this freedom is taken? Is 
there currently a TargetInfo member or chunk of a DataLayoutString that 
indicates the size of the various atomics?

I did some source searches, and didn't find anything.  I've made some 
initial attempts at adding such support, but I've hit some non-trivial 
front-end crashes, so I figured I'd ask around before digging any deeper.

-- 
Employee of Qualcomm Innovation Center, Inc.
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, a Linux Foundation Collaborative Project




More information about the cfe-dev mailing list