Get the latest tech news
GCC 16 Lands Better Support For -march= Targeting On RISC-V
Merged on Friday for the GCC 16 compiler is better handling of the '-march=' compiler option on RISC-V systems when seeing multiple -march= hits and wanting to specify the RISC-V CPU name for targeting.
Robin explained in the commit:"This patch allows an -march string like in order override a previous -march in a simple way. If it is a supported CPU we use its march properties and let it override previously specified options. This enables the "last-specified option wins" behavior GCC normally employs.
Or read this on Phoronix