diff options
author | Kito Cheng <kito.cheng@sifive.com> | 2020-07-28 10:29:49 +0800 |
---|---|---|
committer | Kito Cheng <kito.cheng@sifive.com> | 2020-10-22 16:02:44 +0800 |
commit | df7f0a3a21418f8e06bb4710f09587e54225da93 (patch) | |
tree | 8f0db46a2182ae8910b08af6cd8a5b4d70ad56cd /gcc/c-family/c-cppbuiltin.c | |
parent | ef2d3ec325b1b720df5da20784eba46249af2294 (diff) | |
download | gcc-df7f0a3a21418f8e06bb4710f09587e54225da93.zip gcc-df7f0a3a21418f8e06bb4710f09587e54225da93.tar.gz gcc-df7f0a3a21418f8e06bb4710f09587e54225da93.tar.bz2 |
RISC-V: Extend syntax for the multilib-generator
- Support expansion operator (*) in the multilib config string.
- Motivation of this patch is reduce the complexity when we deal multilib with
sub-extension, expand the combinations by hand would be very painful and
error prone, no one deserve to experience this[1] again!
[1] https://github.com/sifive/freedom-tools/blob/f4d7facafb27d16125768c90ff1790c674e4be7a/Makefile#L348
gcc/ChangeLog:
* config/riscv/multilib-generator: Add TODO, import itertools
and functools.reduce.
Handle expantion operator.
(LONG_EXT_PREFIXES): New.
(arch_canonicalize): Update comment and improve python3
debuggability/compatibility.
(add_underline_prefix): New.
(_expand_combination): Ditto.
(unique): Ditto.
(expand_combination): Ditto.
Diffstat (limited to 'gcc/c-family/c-cppbuiltin.c')
0 files changed, 0 insertions, 0 deletions