Hi,

one feature that would be nice is the ability to compile the OpenRISC
CRT using the clang/llvm toolchain alone. Right now it fails due to some
missing features in the integrated assembler:

clang -target or1k-elf- -integrated-as -c -Os -mhard-mul -mhard-div
-Wall -fno-builtin -nostdinc -DMSC_GIT_ID=0x4c2a2090
-I../../software/include/base
-I../../software/include -I../../common -Wstrict-prototypes
-Wold-style-definition -Wmissing-prototypes -o crt0-or1k.o crt0-or1k.S
crt0-or1k.S:73:19: error: unknown operand
 l.mtspr r0, r21, ((0<< (11)) + 17)
                  ^
crt0-or1k.S:73:19: error: unexpected token at start of statement
 l.mtspr r0, r21, ((0<< (11)) + 17)
                  ^
crt0-or1k.S:74:15: error: unknown operand
 l.movhi r21, hi(_reset_handler)
              ^
crt0-or1k.S:74:17: error: unknown operand
 l.movhi r21, hi(_reset_handler)

[...]

source file:
https://github.com/m-labs/misoc/blob/master/software/libbase/crt0-or1k.S

Sébastien
_______________________________________________
OpenRISC mailing list
[email protected]
http://lists.openrisc.net/listinfo/openrisc

Reply via email to