pz9115 / riscv-gcc

GNU General Public License v2.0
5 stars 4 forks source link

Can't use zdinx imply zfinx like d imply f in gcc part in arch #3

Closed pz9115 closed 3 years ago

pz9115 commented 3 years ago

We want to use zdinx imply zfinx like d imply f in gcc part,use riscv-gcc-10.2.0 releases as base branch

for example, you can compile with "--with-arch=rv64imadc" that equal to "--with-arch=rv64imafdc"

this will generate right arch args in .attribute part

===================================

.attribute arch, "rv64i2p0_m2p0_a2p0_f2p0_d2p0_c2p0"

===================================

We had added the z*inx imply info in riscv-common.c and multilib-generator but it only works in multilib-generator part, still can't generator right .attribute when only use arch zdinx

===================================

.attribute arch, "rv64i2p0_m2p0_a2p0_c2p0_zdinx2p0"

===================================

Maybe we miss add something or it has some problems.

kito-cheng commented 3 years ago

Hmmm, this bug is fixed on https://github.com/riscv/riscv-gcc/tree/riscv-gcc-10.2.0-bump by this commit https://github.com/riscv/riscv-gcc/commit/ec0ade559410ee242ca356928d718387f8bb68ec, could you try with this patch?

pz9115 commented 3 years ago

Ok, I will try it. thanks!

pz9115 commented 3 years ago

This problem is fixed by Kito's patch, close.