https://bugs.llvm.org/show_bug.cgi?id=40689
Bug ID: 40689
Summary: Whitespace added during assembly
Product: clang
Version: unspecified
Hardware: All
OS: MacOS X
Status: NEW
Severity: enhancement
Priority: P
Component: -New Bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
Whitespace added during assembly breaks some files:
$ cat > bug
#!/bin/sh
#ifdef mingw32_HOST_OS
echo windows
#else
echo not windows
#endif
When assembled:
$ clang -E -x assembler-with-cpp bug
# 1 "bug"
# 1 "<built-in>" 1
# 1 "bug" 2
#!/bin/sh
echo not windows
Note the space added before the shebang.
More specifically, this breaks Haskell scripts that use clang to assemble files
which in turn employ the CPP extension; the leading space confuses the Haskell
compiler, stopping it from ignoring the shebang line and failing with a Haskell
compilation error.
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs