Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc/stand When building with clang, optimise for ...
details: https://anonhg.NetBSD.org/src/rev/3cb155b6ee0b
branches: trunk
changeset: 343822:3cb155b6ee0b
user: joerg <joerg%NetBSD.org@localhost>
date: Sat Feb 27 19:25:08 2016 +0000
description:
When building with clang, optimise for minimal size and skip frame
pointers when possible.
diffstat:
sys/arch/sparc/stand/Makefile.buildboot | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r f2b418043121 -r 3cb155b6ee0b sys/arch/sparc/stand/Makefile.buildboot
--- a/sys/arch/sparc/stand/Makefile.buildboot Sat Feb 27 19:20:47 2016 +0000
+++ b/sys/arch/sparc/stand/Makefile.buildboot Sat Feb 27 19:25:08 2016 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.buildboot,v 1.29 2013/08/12 16:34:05 joerg Exp $
+# $NetBSD: Makefile.buildboot,v 1.30 2016/02/27 19:25:08 joerg Exp $
#
# This file is for the sparc `boot' and `bootxx' only; it does not
# currently play well on a 64-bit system.
@@ -35,7 +35,8 @@
CPPFLAGS+= -I. -I${.CURDIR}/../../.. -I${.CURDIR}/../../../..
CPPFLAGS+= -I${.CURDIR}/../../../../../common/include
-CFLAGS= -Os -fno-unwind-tables
+CFLAGS= ${${ACTIVE_CC} == "clang":? -Oz -fomit-frame-pointer : -Os } -fno-unwind-tables
+AFLAGS+= ${${ACTIVE_CC} == "clang":? -Oz :}
CFLAGS+= -Wall -Wstrict-prototypes -Wmissing-prototypes -ffreestanding
### find out what to use for libkern
Home |
Main Index |
Thread Index |
Old Index