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

Chris Lattner clattner at apple.com
Thu Dec 2 22:53:13 PST 2010


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?

-Chris



More information about the cfe-dev mailing list