mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
glibcextract.py: Place un-assemblable @@@ in a comment
Unlike GCC, Clang parses asm statements and verifies they are valid instructions/directives. Place the magic @@@ into a comment to avoid a parse error.
This commit is contained in:
@ -45,7 +45,7 @@ def compute_c_consts(sym_data, cc):
|
|||||||
continue
|
continue
|
||||||
name = arg[0]
|
name = arg[0]
|
||||||
value = arg[1]
|
value = arg[1]
|
||||||
out_lines.append('asm ("@@@name@@@%s@@@value@@@%%0@@@end@@@" '
|
out_lines.append('asm ("/* @@@name@@@%s@@@value@@@%%0@@@end@@@ */" '
|
||||||
': : \"i\" ((long int) (%s)));'
|
': : \"i\" ((long int) (%s)));'
|
||||||
% (name, value))
|
% (name, value))
|
||||||
out_lines.append('}')
|
out_lines.append('}')
|
||||||
|
Reference in New Issue
Block a user