[cfe-dev] Strange character around function declared with "asm"

Eric Christopher echristo at apple.com
Thu Dec 2 22:53:49 PST 2010


On Dec 2, 2010, at 10:53 PM, Chris Lattner wrote:

> 
> On Dec 2, 2010, at 10:48 PM, Eric Christopher wrote:
> 
>>>>> 
>>>>> Is there a reason for the quotation marks (") and the \01 before the
>>>>> intrinsic call? I tried to get the same assembly from llvm-gcc, and in
>>>>> that case there are no quotation marks or other artefacts.
>>>> 
>>>> Apparently clang is mangling it this way on purpose as far as I can
>>>> tell... I'm not really sure why though.
>>> 
>>> The gnu "asm renaming" extension says that USER_LABEL_PREFIX is not prefixed onto the symbol name.  The \1 prefix on the LLVM name tells the backend (through the 'Mangler' class) not to add it.
>> 
>> Interesting. llvm-gcc bug then?
> 
> What's the bug?

There's no \01 prefix in the llvm-gcc version of the module.

-eric



More information about the cfe-dev mailing list