aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2021-10-19 09:58:16 -0700
committerFangrui Song <maskray@google.com>2021-10-19 09:58:16 -0700
commit46baeb61e16511f26db1b255e19dc9163f590367 (patch)
tree7fd1a7ae13de9686d1c850b2caca34be2904579d
parent53d19edf7b7ab506b510c9c879a575c8484d075f (diff)
downloadglibc-46baeb61e16511f26db1b255e19dc9163f590367.zip
glibc-46baeb61e16511f26db1b255e19dc9163f590367.tar.gz
glibc-46baeb61e16511f26db1b255e19dc9163f590367.tar.bz2
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.
-rw-r--r--scripts/glibcextract.py2
1 files changed, 1 insertions, 1 deletions
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('}')