GCC
gcc-12.2.0
C++, Assembly, C
https://gcc.gnu.org/
LoongArch is a new RISC ISA, which is a bit like MIPS or RISC-V, and today Linux/GCC/LLVM etc. support LoongArch. So I want to support this new architecture. I have opened an PR at gcc-cross-builder, and what do I need to do next?
Thanks.
Hey, thanks for the initial PR for gcc-cross-builder. I'll bump the ct-ng revision to have your latest change in the dockerimage. You also need a change in the infra repository (to be able to install the compiler after it has been built from gcc-cross-builder) and the config changes in compiler-explorer.
I see you only have C/C++ enabled. Usually I try to enable as much lang as possible: Ada, D, Go, Fortran... I'll try that locally and see how it works :)
"[ERROR] configure: error: "libffi has not been ported to loongarch64-unknown-linux-gnu."" Not sure what is causing this yet (what depends on libffi)
Thanks a lot for testing other types of compilers. I think c/c++/fortran are fine because I have used them before, but I am not sure if objc/d are supported. Also, I know that Ada/Go are not supported yet. :-)
I'll build the compiler later today and proceed with the testing and needed changes in infra and config. Thanks @specialpointcentral !
TODO:
After testing, seems that D is not OK, same issue as with sh. Hopefully will be fixed in GCC 13. I'll need to fix config, rebuild and rework the config changes
See: https://github.com/compiler-explorer/compiler-explorer/pull/4096#issuecomment-1264486778 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107101