This reverts commit 02ff48751e01b70cffc2217b9cc289e36297104f. (Obsoleted by 1193b0b1f8ff68025665037c46dfa5d8054f1f8e)
Only when building with riscv toolchain, because the default optimization used can lead to this problem.