Revert "[mips] revert r366664 - flip mips back from -O2 to -O"
This reverts commit bd72252aac
.
The commit at hand breaks the build for all mips targets and does not
have a one-liner fix.
make[5]: "/usr/src/share/mk/sys.mk" line 169: Malformed conditional (${MACHINE_CPUARCH} == "mips" && ${COMPILER_TYPE} == "gcc")
This commit is contained in:
parent
64b1230c03
commit
bb3b6995c4
@ -166,14 +166,7 @@ CC ?= c89
|
|||||||
CFLAGS ?= -O
|
CFLAGS ?= -O
|
||||||
.else
|
.else
|
||||||
CC ?= cc
|
CC ?= cc
|
||||||
.if ${MACHINE_CPUARCH} == "mips" && ${COMPILER_TYPE} == "gcc"
|
|
||||||
# Note: there are currently issues generating code gcc-6.x targeting
|
|
||||||
# code for at least mips32. The system hits infinite page faults
|
|
||||||
# when starting /sbin/init if -O2 is used.
|
|
||||||
CFLAGS ?= -O -pipe
|
|
||||||
.else
|
|
||||||
CFLAGS ?= -O2 -pipe
|
CFLAGS ?= -O2 -pipe
|
||||||
.endif
|
|
||||||
.if defined(NO_STRICT_ALIASING)
|
.if defined(NO_STRICT_ALIASING)
|
||||||
CFLAGS += -fno-strict-aliasing
|
CFLAGS += -fno-strict-aliasing
|
||||||
.endif
|
.endif
|
||||||
|
Loading…
Reference in New Issue
Block a user