Build kernels at -O2 instead of -Os, as done for userland and on all other
authormiod <miod@openbsd.org>
Sat, 12 Jul 2014 21:49:27 +0000 (21:49 +0000)
committermiod <miod@openbsd.org>
Sat, 12 Jul 2014 21:49:27 +0000 (21:49 +0000)
architectures.
ok deraadt@

sys/arch/hppa/conf/Makefile.hppa
sys/arch/hppa64/conf/Makefile.hppa64

index 594b9b3..3bb547a 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile.hppa,v 1.75 2014/05/08 21:32:45 miod Exp $
+#      $OpenBSD: Makefile.hppa,v 1.76 2014/07/12 21:49:27 miod Exp $
 
 # For instructions on building kernels consult the config(8) and options(4)
 # manual pages.
@@ -33,7 +33,7 @@ CMACHFLAGS+=  -fno-builtin-printf -fno-builtin-snprintf \
                -fno-builtin-log2 -fno-builtin-malloc ${NOPIE_FLAGS}
 CMACHFLAGS+=   -fno-stack-protector
 
-COPTS?=                -Os
+COPTS?=                -O2
 CFLAGS=                ${DEBUG} ${CWARNFLAGS} ${CMACHFLAGS} ${COPTS} ${PIPE}
 AFLAGS=                -D_LOCORE -x assembler-with-cpp ${CWARNFLAGS} ${CMACHFLAGS}
 LINKFLAGS=     -X -T ${_machdir}/conf/ld.script -Ttext 80000 --warn-common \
index 52e0f02..5aca8aa 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: Makefile.hppa64,v 1.46 2013/10/15 19:23:27 guenther Exp $
+#      $OpenBSD: Makefile.hppa64,v 1.47 2014/07/12 21:49:27 miod Exp $
 
 # For instructions on building kernels consult the config(8) and options(4)
 # manual pages.
@@ -33,7 +33,7 @@ CMACHFLAGS+=  -fno-builtin-printf -fno-builtin-snprintf \
                -fno-builtin-log2 -fno-builtin-malloc ${NOPIE_FLAGS}
 CMACHFLAGS+=   -fno-stack-protector
 
-COPTS?=                -Os
+COPTS?=                -O2
 CFLAGS=                ${DEBUG} ${CWARNFLAGS} ${CMACHFLAGS} ${COPTS} ${PIPE}
 AFLAGS=                -D_LOCORE -x assembler-with-cpp ${CWARNFLAGS} ${CMACHFLAGS}
 LINKFLAGS=     -X -T ${_machdir}/conf/ld.script -Ttext 80000 --warn-common \