mirror of
git://sourceware.org/git/glibc.git
synced 2025-04-12 14:21:18 +08: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:
parent
53d19edf7b
commit
46baeb61e1
@ -45,7 +45,7 @@ def compute_c_consts(sym_data, cc):
|
||||
continue
|
||||
name = arg[0]
|
||||
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)));'
|
||||
% (name, value))
|
||||
out_lines.append('}')
|
||||
|
Loading…
x
Reference in New Issue
Block a user