Fix support for riscv 64 bit against new GCC macros.

This commit is contained in:
Richard W.M. Jones 2018-01-04 19:27:39 +00:00
parent abd8126a38
commit 49f198c13b
2 changed files with 10 additions and 2 deletions

View File

@ -75,9 +75,13 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
#include "gmp-mparam-mipsel.h"
#elif defined(__mips)
#include "gmp-mparam-mips.h"
#elif defined(__riscv64)
#elif defined(__riscv)
#if __riscv_xlen == 64
#include "gmp-mparam-riscv64.h"
#else
#error "No support for riscv32"
#endif
#else
#error "The gmp-devel package is not usable with the architecture."
#endif

6
gmp.h
View File

@ -75,9 +75,13 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
#include "gmp-mipsel.h"
#elif defined(__mips)
#include "gmp-mips.h"
#elif defined(__riscv64)
#elif defined(__riscv)
#if __riscv_xlen == 64
#include "gmp-riscv64.h"
#else
#error "No support for riscv32"
#endif
#else
#error "The gmp-devel package is not usable with the architecture."
#endif