Commit c5607de
committed
Fix Clang error with JIT when EXT_M is disabled
When using 'make ENABLE_EXT_M=0 ENABLE_JIT=1 CC=clang', the following
error is observed:
src/jit.c:728:20: error: unused function 'emit_alu64_imm8' [-Werror,-Wunused-function]
728 | static inline void emit_alu64_imm8(struct jit_state *state,
| ^~~~~~~~~~~~~~~
Fix this by guarding the 'emit_alu64_imm8' function definition with
RV32_HAS(EXT_M) macro. This ensures the function is only defined
when the EXT_M is enabled.1 parent 4477bea commit c5607de
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
725 | 725 | | |
726 | 726 | | |
727 | 727 | | |
| 728 | + | |
728 | 729 | | |
729 | 730 | | |
730 | 731 | | |
| |||
742 | 743 | | |
743 | 744 | | |
744 | 745 | | |
| 746 | + | |
745 | 747 | | |
746 | 748 | | |
747 | 749 | | |
| |||
0 commit comments