Commit 081a677
committed
Fix compiler error with JIT when EXT_M is disabled
When using 'make ENABLE_EXT_M=0 ENABLE_JIT=1', the following error is
observed:
src/jit.c:1693:13: error: ‘ra_load2_sext’ defined but not used [-Werror=unused-function]
1693 | static void ra_load2_sext(struct jit_state *state,
| ^~~~~~~~~~~~~
Fix this by guarding the ra_load2_sext function definition with
RV32_HAS(EXT_M) macro. This ensures the function is only defined when
the M extension is enabled.1 parent 7b06d18 commit 081a677
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1690 | 1690 | | |
1691 | 1691 | | |
1692 | 1692 | | |
| 1693 | + | |
1693 | 1694 | | |
1694 | 1695 | | |
1695 | 1696 | | |
| |||
1733 | 1734 | | |
1734 | 1735 | | |
1735 | 1736 | | |
| 1737 | + | |
1736 | 1738 | | |
1737 | 1739 | | |
1738 | 1740 | | |
| |||
0 commit comments