RISC-V: Don't unconditionally add m,a,f,d in arch-canonicalize
authorSimon Cook <simon.cook@embecosm.com>
Wed, 25 May 2022 13:25:43 +0000 (14:25 +0100)
committerKito Cheng <kito.cheng@sifive.com>
Wed, 25 May 2022 14:00:17 +0000 (22:00 +0800)
commit63f198553d3940495bfaa49da30b2ce93375c916
treee241f665102218292bcda52aa4be02c820ea9b09
parent2a790686fd11bc90032ff67c996c5a2752305625
RISC-V: Don't unconditionally add m,a,f,d in arch-canonicalize

This solves an issue where rv32i, etc. are canonicalized to rv32imafd
since the g->i addition of 'm', 'a', 'f', 'd' is not actually gated by
whether the input was rv32g/rv64g.

gcc/ChangeLog:

* config/riscv/arch-canonicalize: Only add mafd extension if
base was rv32/rv64g.
gcc/config/riscv/arch-canonicalize