Hi,<div><br></div><div>I have been trying to get to grips with GCC's specs language in order to add COFF and ELF emission options.</div><div><br></div><div>I have noticed that the '-emit-llvm-bc' option does not appear to work at all either with -S or without, giving :-</div>
<div><br></div><div> llvm-gcc: unrecognized option '-emit-llvm-bc'</div><div><br></div><div><div>Also this seems by default seems for '-emit-llvm' to produce a '.o' file instead of a '.bc' file extension, unless using a '-o' option and overriding the filename.</div>
<div><br></div></div><div>The LLVM code is as follows :-</div><div><br></div><div><div><font face="'courier new', monospace"><span style="font-size:large">"%{O4|emit-llvm|flto:%{S:-emit-llvm} %{!S:-emit-llvm-bc %{c: %W{o*} %{!o*:-o %b%w.o}} %{!c:-o %d%w%u%O}}}"</span></font></div>
<div><br></div><div>So we have '-O4', '-emit-llvm', and '-flto' equivalent options.</div><div><br></div><div>What I out like is either a '-emit-llvm-coff' and '-emit-llvm-elf' or ideally an '-emit-llvm=coff' if this can be done transparently with an '-emit-llvm' functioning normally.</div>
<div><br></div><div>Any Help welcome !</div><div><br></div><div>Many thanks in advance,</div>
<div><br></div><div>Aaron</div><div><br></div></div>