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