[PATCH] D39963: [RISCV][RFC] Add initial RISC-V target and driver support

Alex Bradbury via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 14 06:15:06 PST 2017


asb added inline comments.


================
Comment at: lib/Driver/ToolChains/RISCV.cpp:86
+    CmdArgs.push_back("-lc");
+    CmdArgs.push_back("-lgloss");
+    CmdArgs.push_back("--end-group");
----------------
apazos wrote:
> mgrang wrote:
> > How about if our sysroot is linux (as opposed to elf)? There won't be any libgloss.a, right? Also there won't be a crt0.o (instead there will be crt1.o).
> Supporting linux target is desirable early on because most of us will be using Qemu for running tests.
Linux targets are not currently supported, as they require the ilp32d or lp64d (hard double precision) ABI. The only fiddly part is actually in the Clang frontend, handling structs composed of two reals or one integer + one real. This is obviously high up on the todo list.


https://reviews.llvm.org/D39963





More information about the cfe-commits mailing list