diff options
author | Geng Qi <gengqi@linux.alibaba.com> | 2021-01-18 14:09:27 +0800 |
---|---|---|
committer | Kito Cheng <kito.cheng@sifive.com> | 2021-01-19 11:44:47 +0800 |
commit | 9ee33d7c33fa757d7011addfa6bdd0ccb6212181 (patch) | |
tree | 6d289384d757b5782758fef8d9c925ea6add286d /gcc/ada/gcc-interface/trans.c | |
parent | c907e4394133b3f4b58feccfb3a415f9ae5ee1f4 (diff) | |
download | gcc-9ee33d7c33fa757d7011addfa6bdd0ccb6212181.zip gcc-9ee33d7c33fa757d7011addfa6bdd0ccb6212181.tar.gz gcc-9ee33d7c33fa757d7011addfa6bdd0ccb6212181.tar.bz2 |
RISC-V: The 'multilib-generator' enhancement.
Think about this case:
./multilib-generator rv32imc-ilp32-rv32imac,rv32imacxthead-f
Here are 2 problems:
1. A unexpected 'xtheadf' extension was made.
2. The arch 'rv32imac' was not be created.
This modification fix these two, and also sorts 'multi-letter'.
gcc/ChangeLog:
* config/riscv/arch-canonicalize (longext_sort): New function for
sorting 'multi-letter'.
* config/riscv/multilib-generator: Adjusting the loop of 'alt' in
'alts'. The 'arch' may not be the first of 'alts'.
(_expand_combination): Add underline for the 'ext' without '*'.
This is because, a single-letter extension can always be treated well
with a '_' prefix, but it cannot be separated out if it is appended
to a multi-letter.
Diffstat (limited to 'gcc/ada/gcc-interface/trans.c')
0 files changed, 0 insertions, 0 deletions