We would like users to explicitly set that, so that implication rule won't screw anything up or unexpect -mabi, that's kind of the conclusion of most RISC-V GCC maintainers (Palmer/Jim Willsom/me).
Also the behavior is there for years, we don't want to make surprise to user for the behavior change. One more thing is -mcpu will also implicitly set -march if -march is not given: so if we made -mabi could be implying from -march...then that means it could be implying from -mcpu if -march is not given. That's kind of...weird and confusing people I think. And yes, clang did the ABI implication from -march and -mcpu, and I got several issue around that within SIFive :P On Fri, May 12, 2023 at 2:34 PM Robin Dapp via Gcc-patches <gcc-patches@gcc.gnu.org> wrote: > > > ok, thanks :) > This has likely been discussed at length before, but why need to > specify the additional -mabi with -march (instead of -march implying > a matching abi)?