Hi Kito,
Kito Cheng <kito.ch...@gmail.com> writes: > You can add a check in configure.ac and config.in to detect whether > binutils is supported or not. > here is example, search HAVE_AS_MISA_SPEC in this patch: > https://github.com/gcc-mirror/gcc/commit/4b81528241ca682025d92558ff6aeec91dafdca8 Ok, but I specifically _don't_ want to require a newer binutils for the little endian triplets (unless there is also some other RISC-V change meaning that the newer binutils is needed anyway, in which case this point becomes moot). I could check the binutils version in the case of big endian triplets only, but since older binutils can't be built for those triplets anyway (due to config.sub), I don't think it would do much. I could also disable the -mlittle-endian and -mbig-endian options if the binutils is too old, but it's questionable if getting a "I don't understand -mbig-endian" from gcc is more useful than getting it from gas. And it would be more work for the user to fix it since then they would have to also rebuild gcc after upgrading binutils. // Marcus