File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
clang/include/clang/Basic Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1094,7 +1094,7 @@ def AVRSignal : InheritableAttr, TargetSpecificAttr<TargetAVR> {
10941094}
10951095
10961096def AsmLabel : InheritableAttr {
1097- let Spellings = [CustomKeyword<"asm">, CustomKeyword<"__asm__">];
1097+ let Spellings = [CustomKeyword<"asm">, CustomKeyword<"__asm">, CustomKeyword<" __asm__">];
10981098 let Args = [
10991099 // Label specifies the mangled name for the decl.
11001100 StringArgument<"Label">, ];
Original file line number Diff line number Diff line change @@ -4295,17 +4295,17 @@ used by other languages. (This prefix is also added to the standard Itanium
42954295C++ ABI prefix on "mangled" symbol names, so that e.g. on such targets the true
42964296symbol name for a C++ variable declared as ``int cppvar;`` would be
42974297``__Z6cppvar``; note the two underscores.) This prefix is *not* added to the
4298- symbol names specified by the ``asm `` attribute; programmers wishing to match a
4299- C symbol name must compensate for this.
4298+ symbol names specified by the ``__asm `` attribute; programmers wishing to match
4299+ a C symbol name must compensate for this.
43004300
43014301For example, consider the following C code:
43024302
43034303.. code-block:: c
43044304
4305- int var1 asm ("altvar") = 1; // "altvar" in symbol table.
4305+ int var1 __asm ("altvar") = 1; // "altvar" in symbol table.
43064306 int var2 = 1; // "_var2" in symbol table.
43074307
4308- void func1(void) asm ("altfunc");
4308+ void func1(void) __asm ("altfunc");
43094309 void func1(void) {} // "altfunc" in symbol table.
43104310 void func2(void) {} // "_func2" in symbol table.
43114311
You can’t perform that action at this time.
0 commit comments