I am porting xv6 from GCC to Clang, and met the following error message:
clang -m32 -gdwarf-2 -Wa,-divide -c -o swtch.o swtch.S
clang-3.8: error: unsupported argument '-divide' to option 'Wa,'
Note that -Wa
is used to pass arguments to the assembler, and I couldn't figure out what is the -divide
option.
As a fix, currently I switched off the integrated assembler by passing the no-integrated-as
option to Clang. But I want to use Clang's integrated assember. Is it safe to ignore this option? Or is there an alternative way to give that option to Clang?