Closed Quuxplusone closed 15 years ago
Attached testcase.s
(40 bytes, text/plain): asm that works on gcc but not ccc
Attached Types.py.diff
(457 bytes, text/x-patch): Apply against Types.py in ccclib
I turned on support for using clang to handle -x assembler-with-cpp (previously it had been using gcc).
As it turns out, this bug is a problem in clang's assembler-with-cpp handling. We do not properly recognize the call to the macro. The problem is that in C mode this is an instance of the gcc extended "$" in identifiers.
For now, consider using -ccc-no-clang-cpp to work around (this must be the first argument to the driver). You can also do this via the environment variable 'CCC_ADD_ARGS=-ccc-no-clang-cpp'
Chris, is this much work to fix in clang?
_Bug 3805 has been marked as a duplicate of this bug._
testcase.s
(40 bytes, text/plain)Types.py.diff
(457 bytes, text/x-patch)