From: Fangrui Song Date: Tue, 19 Oct 2021 16:58:16 +0000 (-0700) Subject: glibcextract.py: Place un-assemblable @@@ in a comment X-Git-Tag: glibc-2.35~412 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=46baeb61e16511f26db1b255e19dc9163f590367;p=thirdparty%2Fglibc.git 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. --- diff --git a/scripts/glibcextract.py b/scripts/glibcextract.py index 752ff6223b0..bf49a5e3229 100644 --- a/scripts/glibcextract.py +++ b/scripts/glibcextract.py @@ -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('}')