Hello, Since February this year I have been working on an OpenRISC clean room rewrite.
http://stffrdhrn.github.io/software/embedded/openrisc/2018/02/03/openrisc_gcc_rewrite.html As per the article, the old port had issues with some of the owners signing over FSF copyright. To get around this I discussed options with the group and in the end I opted for a clean room rewrite. The new code base has been written by me with lots of help from Richard Henderson. I trust that both of us have our FSF GCC copyright's in place. # Testing We have been running the GCC testsuite with newlib and musl libc. The results are good. See results published in a test build/release here: - https://github.com/stffrdhrn/gcc/releases/tag/or1k-9.0.0-20180730 # Building To build this requires some of the latest binutils patches submitted here: - https://gcc.gnu.org/ml/gcc-patches/2018-08/msg01506.html - git tree: https://github.com/stffrdhrn/binutils-gdb/tree/or1k-6 -Stafford Stafford Horne (3): or1k: libgcc: initial support for openrisc or1k: testsuite: initial support for openrisc or1k: gcc: initial support for openrisc gcc/common/config/or1k/or1k-common.c | 41 + gcc/config.gcc | 22 + gcc/config/or1k/constraints.md | 55 + gcc/config/or1k/elf.h | 42 + gcc/config/or1k/elf.opt | 33 + gcc/config/or1k/linux.h | 46 + gcc/config/or1k/or1k-protos.h | 38 + gcc/config/or1k/or1k.c | 2051 +++++++++++++++++ gcc/config/or1k/or1k.h | 393 ++++ gcc/config/or1k/or1k.md | 842 +++++++ gcc/config/or1k/or1k.opt | 41 + gcc/config/or1k/predicates.md | 84 + gcc/config/or1k/t-or1k | 21 + gcc/configure | 12 + gcc/configure.ac | 12 + .../gcc.c-torture/execute/20101011-1.c | 3 + gcc/testsuite/gcc.dg/20020312-2.c | 2 + gcc/testsuite/gcc.dg/attr-alloc_size-11.c | 4 +- gcc/testsuite/gcc.dg/builtin-apply2.c | 2 +- gcc/testsuite/gcc.dg/nop.h | 2 + .../torture/stackalign/builtin-apply-2.c | 2 +- gcc/testsuite/gcc.dg/tree-ssa/20040204-1.c | 2 +- gcc/testsuite/gcc.dg/tree-ssa/reassoc-33.c | 2 +- gcc/testsuite/gcc.dg/tree-ssa/reassoc-34.c | 2 +- gcc/testsuite/gcc.dg/tree-ssa/reassoc-35.c | 2 +- gcc/testsuite/gcc.dg/tree-ssa/reassoc-36.c | 2 +- gcc/testsuite/gcc.target/or1k/args-1.c | 19 + gcc/testsuite/gcc.target/or1k/args-2.c | 15 + gcc/testsuite/gcc.target/or1k/cmov-1.c | 8 + gcc/testsuite/gcc.target/or1k/div-mul-1.c | 9 + gcc/testsuite/gcc.target/or1k/div-mul-2.c | 9 + gcc/testsuite/gcc.target/or1k/or1k.exp | 41 + gcc/testsuite/gcc.target/or1k/return-1.c | 10 + gcc/testsuite/gcc.target/or1k/return-2.c | 19 + gcc/testsuite/gcc.target/or1k/return-3.c | 19 + gcc/testsuite/gcc.target/or1k/return-4.c | 19 + gcc/testsuite/gcc.target/or1k/sibcall-1.c | 18 + gcc/testsuite/lib/target-supports.exp | 1 + libgcc/config.host | 13 + libgcc/config/or1k/crti.S | 37 + libgcc/config/or1k/crtn.S | 33 + libgcc/config/or1k/lib1funcs.S | 188 ++ libgcc/config/or1k/linux-unwind.h | 87 + libgcc/config/or1k/sfp-machine.h | 54 + libgcc/config/or1k/t-or1k | 22 + 45 files changed, 4370 insertions(+), 9 deletions(-) create mode 100644 gcc/common/config/or1k/or1k-common.c create mode 100644 gcc/config/or1k/constraints.md create mode 100644 gcc/config/or1k/elf.h create mode 100644 gcc/config/or1k/elf.opt create mode 100644 gcc/config/or1k/linux.h create mode 100644 gcc/config/or1k/or1k-protos.h create mode 100644 gcc/config/or1k/or1k.c create mode 100644 gcc/config/or1k/or1k.h create mode 100644 gcc/config/or1k/or1k.md create mode 100644 gcc/config/or1k/or1k.opt create mode 100644 gcc/config/or1k/predicates.md create mode 100644 gcc/config/or1k/t-or1k create mode 100644 gcc/testsuite/gcc.target/or1k/args-1.c create mode 100644 gcc/testsuite/gcc.target/or1k/args-2.c create mode 100644 gcc/testsuite/gcc.target/or1k/cmov-1.c create mode 100644 gcc/testsuite/gcc.target/or1k/div-mul-1.c create mode 100644 gcc/testsuite/gcc.target/or1k/div-mul-2.c create mode 100644 gcc/testsuite/gcc.target/or1k/or1k.exp create mode 100644 gcc/testsuite/gcc.target/or1k/return-1.c create mode 100644 gcc/testsuite/gcc.target/or1k/return-2.c create mode 100644 gcc/testsuite/gcc.target/or1k/return-3.c create mode 100644 gcc/testsuite/gcc.target/or1k/return-4.c create mode 100644 gcc/testsuite/gcc.target/or1k/sibcall-1.c create mode 100644 libgcc/config/or1k/crti.S create mode 100644 libgcc/config/or1k/crtn.S create mode 100644 libgcc/config/or1k/lib1funcs.S create mode 100644 libgcc/config/or1k/linux-unwind.h create mode 100644 libgcc/config/or1k/sfp-machine.h create mode 100644 libgcc/config/or1k/t-or1k -- 2.17.1