On Friday, April 07, 2017 02:38:16 PM Warner Losh wrote: > The TARGET_CPUTYPE=mips3 likely should be the default in the build > system. We require mips3 or better ISA for our O32 ABI. Since we > require that, making the user set this always is a friction point that > we should file off. It's not like any other architecture. I'll look at > making that the overridable default if I can find a few minutes > sometime.
This one in particular is kind of tricky because clang refuses to compile O32 MIPS if you set -march=mips3 (it works if you use mips2 or if you leave off the '-march' entirely). I had played with trying to cater to this by setting default CPUCFLAGS if CPUTYPE was empty but then ran into the problem that clang would need a different setting from GCC and punted. Also, the way we set CFLAGS for alternate lib builds (lib32, etc.) is kind of hackish. Possibly they should be invoking bsd.cpu.mk with a different TARGET_ARCH to avoid duplicating logic. -- John Baldwin _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"