Add multilib support for RISC-V.

(Implemented by Stefan O'Rear)

No rebuild is necessary.
This commit is contained in:
Richard W.M. Jones 2016-10-05 18:30:42 +01:00
parent 2b2ac31a84
commit ca66bc1c88
2 changed files with 4 additions and 0 deletions

View File

@ -75,6 +75,8 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
#include "gmp-mparam-mipsel.h" #include "gmp-mparam-mipsel.h"
#elif defined(__mips) #elif defined(__mips)
#include "gmp-mparam-mips.h" #include "gmp-mparam-mips.h"
#elif defined(__riscv64)
#include "gmp-mparam-riscv64.h"
#else #else
#error "The gmp-devel package is not usable with the architecture." #error "The gmp-devel package is not usable with the architecture."
#endif #endif

2
gmp.h
View File

@ -75,6 +75,8 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
#include "gmp-mipsel.h" #include "gmp-mipsel.h"
#elif defined(__mips) #elif defined(__mips)
#include "gmp-mips.h" #include "gmp-mips.h"
#elif defined(__riscv64)
#include "gmp-riscv64.h"
#else #else
#error "The gmp-devel package is not usable with the architecture." #error "The gmp-devel package is not usable with the architecture."
#endif #endif