mbox

[0/2,v3] New target hook TARGET_COMPUTE_MULTILIB and implementation for RISC-V

Message ID 20210916093838.95184-1-kito.cheng@sifive.com
Headers

Message

Kito Cheng Sept. 16, 2021, 9:38 a.m. UTC
  This patch set allow target to use customized multi-lib mechanism rather than the built-in
multi-lib mechanism.

The motivation of this patch is RISC-V might have very complicated multi-lib re-use
rule*, which is hard to maintain and use current multi-lib scripts,
we even hit the "argument list too long" error when we tried to add more
multi-lib reuse rule.

* Here is an example for RISC-V multi-lib rules:
https://gist.github.com/kito-cheng/0289cd42d9a756382e5afeb77b42b73b

V3 Changes:
- Doc fix for the first patch.
- Fix lots of typo.
- Rewrite multi-lib option parsing in riscv_compute_multilib.
- Rewrite riscv_check_conds (was riscv_check_other_cond).

V2 Changes:
- NO changes for the first patch(TARGET_COMPUTE_MULTILIB part) since the first version.
- Handle option other than -march and -mabi for riscv_compute_multilib.