194aa3
commit 46baeb61e16511f26db1b255e19dc9163f590367
194aa3
Author: Fangrui Song <maskray@google.com>
194aa3
Date:   Tue Oct 19 09:58:16 2021 -0700
194aa3
194aa3
    glibcextract.py: Place un-assemblable @@@ in a comment
194aa3
    
194aa3
    Unlike GCC, Clang parses asm statements and verifies they are valid
194aa3
    instructions/directives. Place the magic @@@ into a comment to avoid
194aa3
    a parse error.
194aa3
194aa3
diff --git a/scripts/glibcextract.py b/scripts/glibcextract.py
194aa3
index 06f712ad115e0f9e..8f2246aae6a9dfb7 100644
194aa3
--- a/scripts/glibcextract.py
194aa3
+++ b/scripts/glibcextract.py
194aa3
@@ -45,7 +45,7 @@ def compute_c_consts(sym_data, cc):
194aa3
             continue
194aa3
         name = arg[0]
194aa3
         value = arg[1]
194aa3
-        out_lines.append('asm ("@@@name@@@%s@@@value@@@%%0@@@end@@@" '
194aa3
+        out_lines.append('asm ("/* @@@name@@@%s@@@value@@@%%0@@@end@@@ */" '
194aa3
                          ': : \"i\" ((long int) (%s)));'
194aa3
                          % (name, value))
194aa3
     out_lines.append('}')