]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Stop using -O instead of -O2 for MIPS
authorarichardson <arichardson@FreeBSD.org>
Tue, 13 Oct 2020 08:14:33 +0000 (08:14 +0000)
committerarichardson <arichardson@FreeBSD.org>
Tue, 13 Oct 2020 08:14:33 +0000 (08:14 +0000)
commitdd26fbc70f3e03dbbff76b5593d5dad97a66a0e0
treed3146e5d1c975c7b949ab6d2fa9d23fc445ac059
parentb3866f4bf2a28d20aa9a91a6f8737394e3546837
Stop using -O instead of -O2 for MIPS

Until clang 11 that was equivalent to -O2, but clang changed it to -O1 so
generated MIPS code will now be unnecessarily slow. It also removes a weird
special case from sys.mk.
This is similar to the D26471 change for debug kernels and should not change
anything since everything was previously building MIPS code at -O2 until the
clang 11 update.

Reviewed By: trasz
Differential Revision: https://reviews.freebsd.org/D26749
share/mk/sys.mk