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