From 46baeb61e16511f26db1b255e19dc9163f590367 Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Tue, 19 Oct 2021 09:58:16 -0700 Subject: 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. --- scripts/glibcextract.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/glibcextract.py') diff --git a/scripts/glibcextract.py b/scripts/glibcextract.py index 752ff62..bf49a5e 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('}') -- cgit v1.1