1. riscv64-linux-gcc -march=rv64gc -march=foo-cpu -mtune=foo-cpu
2. riscv64-linux-gcc -march=rv64gc -march=foo-cpu
3. riscv64-linux-gcc -march=rv64gc -march=unset -mtune=unset -mcpu=foo-cpu
Preference to me:
- Prefer option 1.
- Less prefer option 3. (acceptable but I don't like)
- Strongly dislike option 2.
My order of preference would be (unsurprisingly):
2, 1, 3
I realize that might be a minority opinion.
IMHO compilers are already difficult enough, the shorter the "compile/tune for
this CPU/profile" option, the better.
--
Regards
Robin