aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorAlex Richardson <arichardson@FreeBSD.org>2020-10-13 08:14:33 +0000
committerAlex Richardson <arichardson@FreeBSD.org>2020-10-13 08:14:33 +0000
commit2cef3afd7b50b18d30085f5943c09b061215a75f (patch)
treed3146e5d1c975c7b949ab6d2fa9d23fc445ac059 /share
parent085e62eb4fdc9c65120e3947902863ae879ee548 (diff)
downloadsrc-2cef3afd7b50b18d30085f5943c09b061215a75f.tar.gz
src-2cef3afd7b50b18d30085f5943c09b061215a75f.zip
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
Notes
Notes: svn path=/head/; revision=366664
Diffstat (limited to 'share')
-rw-r--r--share/mk/sys.mk4
1 files changed, 0 insertions, 4 deletions
diff --git a/share/mk/sys.mk b/share/mk/sys.mk
index b3843bb779b7..e051cfe5a040 100644
--- a/share/mk/sys.mk
+++ b/share/mk/sys.mk
@@ -166,11 +166,7 @@ CC ?= c89
CFLAGS ?= -O
.else
CC ?= cc
-.if ${MACHINE_CPUARCH} == "mips"
-CFLAGS ?= -O -pipe
-.else
CFLAGS ?= -O2 -pipe
-.endif
.if defined(NO_STRICT_ALIASING)
CFLAGS += -fno-strict-aliasing
.endif