From: miod Date: Sat, 12 Jul 2014 21:49:27 +0000 (+0000) Subject: Build kernels at -O2 instead of -Os, as done for userland and on all other X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=c0d3cd1c43fade87fb741bb68896886088888cac;p=openbsd Build kernels at -O2 instead of -Os, as done for userland and on all other architectures. ok deraadt@ --- diff --git a/sys/arch/hppa/conf/Makefile.hppa b/sys/arch/hppa/conf/Makefile.hppa index 594b9b3c42e..3bb547a8c10 100644 --- a/sys/arch/hppa/conf/Makefile.hppa +++ b/sys/arch/hppa/conf/Makefile.hppa @@ -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 \ diff --git a/sys/arch/hppa64/conf/Makefile.hppa64 b/sys/arch/hppa64/conf/Makefile.hppa64 index 52e0f02b57e..5aca8aacbc5 100644 --- a/sys/arch/hppa64/conf/Makefile.hppa64 +++ b/sys/arch/hppa64/conf/Makefile.hppa64 @@ -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 \