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