|
@@ -413,10 +413,14 @@ cmd_xzmisc = (cat $(filter-out FORCE,$^) | \
|
|
# ---------------------------------------------------------------------------
|
|
# ---------------------------------------------------------------------------
|
|
|
|
|
|
# Default sed regexp - multiline due to syntax constraints
|
|
# Default sed regexp - multiline due to syntax constraints
|
|
|
|
+#
|
|
|
|
+# Use [:space:] because LLVM's integrated assembler inserts <tab> around
|
|
|
|
+# the .ascii directive whereas GCC keeps the <space> as-is.
|
|
define sed-offsets
|
|
define sed-offsets
|
|
- "/^->/{s:->#\(.*\):/* \1 */:; \
|
|
|
|
|
|
+ 's:^[[:space:]]*\.ascii[[:space:]]*"\(.*\)".*:\1:; \
|
|
|
|
+ /^->/{s:->#\(.*\):/* \1 */:; \
|
|
s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; \
|
|
s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; \
|
|
- s:->::; p;}"
|
|
|
|
|
|
+ s:->::; p;}'
|
|
endef
|
|
endef
|
|
|
|
|
|
# Use filechk to avoid rebuilds when a header changes, but the resulting file
|
|
# Use filechk to avoid rebuilds when a header changes, but the resulting file
|