[cfe-dev] Question about stripping address-space qualifier with C++

Matt Arsenault Matthew.Arsenault at amd.com
Tue Jan 13 12:00:01 PST 2015


On 01/13/2015 08:15 AM, JinGu Kang wrote:
> If builtin functions use custom type checking like 
> '__sync_fetch_and_or', it is not problem. But we should match the 
> function prototype in other cases like '__sync_fetch_and_max'. So we 
> need to strip address space qualifier In order to call 
> '__sync_fetch_and_max' function. 

This sounds like you are working around builtins not working correctly 
with address spaces (which is probably most of them). Stripping the 
address space qualifier is not really what you want



More information about the cfe-dev mailing list