riscv: predefine more macros
RISC-V uses some more control macros for features (e.g. used int <setjmp.h> to declare the jumpbuf contents).
This commit is contained in:
parent
5390a729d9
commit
b0329ac081
1 changed files with 6 additions and 0 deletions
6
libtcc.c
6
libtcc.c
|
@ -812,6 +812,12 @@ LIBTCCAPI TCCState *tcc_new(void)
|
||||||
#elif defined TCC_TARGET_RISCV64
|
#elif defined TCC_TARGET_RISCV64
|
||||||
tcc_define_symbol(s, "__riscv", NULL);
|
tcc_define_symbol(s, "__riscv", NULL);
|
||||||
tcc_define_symbol(s, "__riscv_xlen", "64");
|
tcc_define_symbol(s, "__riscv_xlen", "64");
|
||||||
|
tcc_define_symbol(s, "__riscv_flen", "64");
|
||||||
|
tcc_define_symbol(s, "__riscv_div", NULL);
|
||||||
|
tcc_define_symbol(s, "__riscv_mul", NULL);
|
||||||
|
tcc_define_symbol(s, "__riscv_fdiv", NULL);
|
||||||
|
tcc_define_symbol(s, "__riscv_fsqrt", NULL);
|
||||||
|
tcc_define_symbol(s, "__riscv_float_abi_double", NULL);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef TCC_TARGET_PE
|
#ifdef TCC_TARGET_PE
|
||||||
|
|
Loading…
Reference in a new issue