History

riscv: predefine more macros

RISC-V uses some more control macros for features (e.g. used int <setjmp.h> to declare the jumpbuf contents).

Michael Matz committed 7 years ago

Commit b0329ac1 parent 5390a721 file · +6 −0Browse files

Unified · Split

libtcc.c+6−0
@@ -812,6 +812,12 @@ LIBTCCAPI TCCState *tcc_new(void) · 811 unmodified lines
812812 #elif defined TCC_TARGET_RISCV64
813813 tcc_define_symbol(s, "__riscv", NULL);
814814 tcc_define_symbol(s, "__riscv_xlen", "64");
815+ tcc_define_symbol(s, "__riscv_flen", "64");
816+ tcc_define_symbol(s, "__riscv_div", NULL);
817+ tcc_define_symbol(s, "__riscv_mul", NULL);
818+ tcc_define_symbol(s, "__riscv_fdiv", NULL);
819+ tcc_define_symbol(s, "__riscv_fsqrt", NULL);
820+ tcc_define_symbol(s, "__riscv_float_abi_double", NULL);
815821 #endif
816822
817823 #ifdef TCC_TARGET_PE

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t