RISC-V: Always define MULTILIB_DEFAULTS
authorKito Cheng <kito.cheng@sifive.com>
Fri, 20 Nov 2020 06:14:18 +0000 (14:14 +0800)
committerKito Cheng <kito.cheng@sifive.com>
Mon, 30 Nov 2020 03:50:30 +0000 (11:50 +0800)
commita5ad5d5c478ee7bebf057161bb8715ee7d286875
tree8b1d44a93f2b1867cf1d54de89581619c8d1c6b3
parent3a5d8ed231a0329822b7c032ba0834991732d2a0
RISC-V: Always define MULTILIB_DEFAULTS

 - Define MULTILIB_DEFAULTS can reduce the total number of multilib if
   the default arch and ABI are listed in the multilib config.

 - This also simplify the implementation of --with-multilib-list.

gcc/ChangeLog:

* config.gcc (riscv*-*-*): Add TARGET_RISCV_DEFAULT_ABI and
TARGET_RISCV_DEFAULT_ARCH to tm_defines.
Remove including riscv/withmultilib.h for --with-multilib-list.
* config/riscv/riscv.h (STRINGIZING): New.
(__STRINGIZING): Ditto.
(MULTILIB_DEFAULTS): Ditto.
* config/riscv/withmultilib.h: Remove.
gcc/config.gcc
gcc/config/riscv/riscv.h
gcc/config/riscv/withmultilib.h [deleted file]