mirror of
https://github.com/mirror/tinycc.git
synced 2025-02-28 08:10:25 +08:00
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
6
libtcc.c
6
libtcc.c
@ -812,6 +812,12 @@ LIBTCCAPI TCCState *tcc_new(void)
|
||||
#elif defined TCC_TARGET_RISCV64
|
||||
tcc_define_symbol(s, "__riscv", NULL);
|
||||
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
|
||||
|
||||
#ifdef TCC_TARGET_PE
|
||||
|
Loading…
Reference in New Issue
Block a user