From b0329ac081a8563b3cae0cfd27cf47242b79a0bf Mon Sep 17 00:00:00 2001 From: Michael Matz Date: Mon, 15 Jul 2019 21:50:07 +0200 Subject: [PATCH] riscv: predefine more macros RISC-V uses some more control macros for features (e.g. used int to declare the jumpbuf contents). --- libtcc.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/libtcc.c b/libtcc.c index 2ea1843e..b3c4fc8e 100644 --- a/libtcc.c +++ b/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 -- 2.11.4.GIT