1 2 3 4 5 6 7 8 9 10 11
--- trunk/gcc/config/riscv/linux.h 2018/01/03 10:03:58 256169 +++ trunk/gcc/config/riscv/linux.h 2018/02/13 11:21:01 257621 @@ -47,6 +47,8 @@ #define ICACHE_FLUSH_FUNC "__riscv_flush_icache" +#define CPP_SPEC "%{pthread:-D_REENTRANT}" + #define LINK_SPEC "\ -melf" XLEN_SPEC "lriscv \ %{shared} \