diff options
author | Kito Cheng <kito.cheng@sifive.com> | 2019-08-06 03:16:40 +0000 |
---|---|---|
committer | Kito Cheng <kito@gcc.gnu.org> | 2019-08-06 03:16:40 +0000 |
commit | 7551a6e467c64b3155d5b8f005cd7ea7143b21f3 (patch) | |
tree | ec027587fbbaeeab5c1cdfa487be2f7580080228 /gcc/omp-low.c | |
parent | c026e33449102076609e084ca2cd4a729b3c504b (diff) | |
download | gcc-7551a6e467c64b3155d5b8f005cd7ea7143b21f3.zip gcc-7551a6e467c64b3155d5b8f005cd7ea7143b21f3.tar.gz gcc-7551a6e467c64b3155d5b8f005cd7ea7143b21f3.tar.bz2 |
RISC-V: Handle extensions combination correctly in multilib-generator.
Input string consist of four parts:
<primary arch>-<abi>-<additional arches>-<extensions>
and generator doing combination with <extensions> part, but it just
append the extension at the end of arch string, it might generate
invalid arch.
For example, without this patch `./multilib-generator rv32imafc-ilp32--d`
will generate:
MULTILIB_OPTIONS = march=rv32imafc/march=rv32imafcd mabi=ilp32
^^^^^^^^^^
and rv32imafcd is not in canonical order.
Tested with python 2.7 and python 3.6/3.7.
gcc/ChangeLog
* gcc/config/riscv/multilib-generator: (canonical_order): New.
(arch_canonicalize): Dito.
Apply arch_canonicalize for alts.
From-SVN: r274137
Diffstat (limited to 'gcc/omp-low.c')
0 files changed, 0 insertions, 0 deletions