Don't set -mmultiple or -mno-string for PowerPC, the difference is too
small to really matter and it sometimes even increases the size.
This commit is contained in:
parent
7e2a6d5287
commit
0c7d9d4853
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.1 2010/10/17 11:05:18 kiyohara Exp $
|
||||
# $NetBSD: Makefile,v 1.2 2014/08/08 16:56:30 joerg Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
|
||||
|
@ -8,7 +8,7 @@ IMAGESIZE= 2048k
|
|||
MAKEFS_FLAGS= -f 15
|
||||
|
||||
WARNS= 1
|
||||
DBG= -Os -mmultiple
|
||||
DBG= -Os
|
||||
|
||||
CRUNCHBIN= ramdiskbin
|
||||
CRUNCHGEN_FLAGS=-d "${DBG}"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.16 2012/08/14 07:24:40 martin Exp $
|
||||
# $NetBSD: Makefile,v 1.17 2014/08/08 16:56:30 joerg Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
|
||||
|
@ -8,7 +8,7 @@ IMAGESIZE= 2880k
|
|||
MAKEFS_FLAGS= -f 15
|
||||
|
||||
WARNS= 1
|
||||
DBG= -Os -mmultiple -mno-string -fno-pie -fno-pic
|
||||
DBG= -Os
|
||||
|
||||
CRUNCHBIN= ramdiskbin
|
||||
CRUNCHGEN_FLAGS=-d "${DBG}"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.11 2012/08/14 07:24:41 martin Exp $
|
||||
# $NetBSD: Makefile,v 1.12 2014/08/08 16:56:31 joerg Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
|
||||
|
@ -8,7 +8,6 @@ IMAGESIZE= 2048k
|
|||
MAKEFS_FLAGS= -f 15
|
||||
|
||||
WARNS= 1
|
||||
# DBG= -Os -mmultiple -mstring
|
||||
|
||||
CRUNCHBIN= ramdiskbin
|
||||
CRUNCHGEN_FLAGS= -d "${DBG}"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.45 2014/08/07 16:51:57 gdt Exp $
|
||||
# $NetBSD: Makefile,v 1.46 2014/08/08 16:56:31 joerg Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
|
||||
|
@ -12,7 +12,7 @@ IMAGESIZE= 2248k
|
|||
MAKEFS_FLAGS= -f 15
|
||||
|
||||
WARNS= 1
|
||||
DBG= -Os -mmultiple -mstring
|
||||
DBG= -Os
|
||||
|
||||
CRUNCHBIN= ramdiskbin
|
||||
CRUNCHGEN_FLAGS= -d "${DBG}"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.20 2010/02/11 09:06:50 roy Exp $
|
||||
# $NetBSD: Makefile,v 1.21 2014/08/08 16:56:31 joerg Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
|
||||
|
@ -8,7 +8,7 @@ IMAGESIZE= 2048k
|
|||
MAKEFS_FLAGS= -f 15
|
||||
|
||||
WARNS= 1
|
||||
DBG= -Os -mmultiple
|
||||
DBG= -Os
|
||||
|
||||
CRUNCHBIN= ramdiskbin
|
||||
CRUNCHGEN_FLAGS=-d "${DBG}"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.6 2010/02/11 09:06:50 roy Exp $
|
||||
# $NetBSD: Makefile,v 1.7 2014/08/08 16:56:31 joerg Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
|
||||
|
@ -8,7 +8,7 @@ IMAGESIZE= 2048k
|
|||
MAKEFS_FLAGS= -f 15
|
||||
|
||||
WARNS= 1
|
||||
DBG= -Os -mmultiple -mstring
|
||||
DBG= -Os
|
||||
|
||||
CRUNCHBIN= ramdiskbin
|
||||
CRUNCHGEN_FLAGS= -d "${DBG}"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.10 2012/08/14 07:24:41 martin Exp $
|
||||
# $NetBSD: Makefile,v 1.11 2014/08/08 16:56:31 joerg Exp $
|
||||
|
||||
.include <bsd.own.mk>
|
||||
.include "${NETBSDSRCDIR}/distrib/common/Makefile.distrib"
|
||||
|
@ -8,7 +8,7 @@ IMAGESIZE= 2048k
|
|||
MAKEFS_FLAGS= -f 15
|
||||
|
||||
WARNS= 1
|
||||
DBG= -Os -mmultiple -mstring
|
||||
DBG= -Os
|
||||
|
||||
CRUNCHBIN= ramdiskbin
|
||||
CRUNCHGEN_FLAGS=-d "${DBG}"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.3 2013/08/21 06:53:10 matt Exp $
|
||||
# $NetBSD: Makefile,v 1.4 2014/08/08 16:56:31 joerg Exp $
|
||||
|
||||
S= ${.CURDIR}/../../../..
|
||||
|
||||
|
@ -9,7 +9,7 @@ CPPFLAGS+= -D__daddr_t=int32_t
|
|||
CPPFLAGS+= -I. -I${S} -I${.OBJDIR}
|
||||
CPPFLAGS+= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes
|
||||
|
||||
CFLAGS= -Os -mmultiple -ffreestanding
|
||||
CFLAGS= -Os -ffreestanding
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
.include <bsd.klinks.mk>
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
# $NetBSD: Makefile.mpc85xx.inc,v 1.3 2011/05/28 00:07:24 matt Exp $
|
||||
# $NetBSD: Makefile.mpc85xx.inc,v 1.4 2014/08/08 16:56:31 joerg Exp $
|
||||
|
||||
CFLAGS+= -mmultiple
|
||||
CFLAGS+= -mno-string -misel -Wa,-me500
|
||||
CFLAGS+= -misel -Wa,-me500
|
||||
CFLAGS+= -fno-inline-functions-called-once
|
||||
AFLAGS+= -Wa,-me500
|
||||
# gcc emits bad code with these options
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: GENERIC,v 1.42 2013/04/27 21:43:30 christos Exp $
|
||||
# $NetBSD: GENERIC,v 1.43 2014/08/08 16:56:31 joerg Exp $
|
||||
#
|
||||
#
|
||||
|
||||
|
@ -6,8 +6,6 @@ include "arch/ibmnws/conf/std.ibmnws"
|
|||
|
||||
options INCLUDE_CONFIG_FILE # embed config file in kernel binary
|
||||
|
||||
#makeoptions COPTS="-Os -mmultiple" # -Os -mmultiple to reduce size.
|
||||
|
||||
# Console settings
|
||||
options CONSOLE="\"genfb\""
|
||||
#options CONSOLE="\"com\""
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: INSTALL,v 1.122 2014/08/07 16:51:56 gdt Exp $
|
||||
# $NetBSD: INSTALL,v 1.123 2014/08/08 16:56:31 joerg Exp $
|
||||
#
|
||||
# config file for INSTALL FLOPPY
|
||||
#
|
||||
|
@ -7,7 +7,7 @@ include "arch/macppc/conf/std.macppc"
|
|||
|
||||
#options INCLUDE_CONFIG_FILE # embed config file in kernel binary
|
||||
|
||||
makeoptions COPTS="-Os -mmultiple -pipe" # -Os -mmultiple to reduce size.
|
||||
makeoptions COPTS="-Os" # Reduce size.
|
||||
|
||||
maxusers 12
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.13 2014/01/12 15:26:30 tsutsui Exp $
|
||||
# $NetBSD: Makefile,v 1.14 2014/08/08 16:56:31 joerg Exp $
|
||||
|
||||
S!= cd ${.CURDIR}/../../../..; pwd
|
||||
|
||||
|
@ -12,7 +12,7 @@ LIBCRTBEGIN= # nothing
|
|||
LIBCRTEND= # nothing
|
||||
LIBC= # nothing
|
||||
|
||||
CFLAGS= -Os -mmultiple -Wall -msoft-float -ffreestanding
|
||||
CFLAGS= -Os -Wall -msoft-float -ffreestanding
|
||||
CPPFLAGS+= -D_STANDALONE -DPPC_OEA -I${.OBJDIR} -I${S}
|
||||
STRIPFLAG=
|
||||
LINKFLAGS= -x -N -Ttext 4000 -e _start
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.52 2014/01/12 15:26:30 tsutsui Exp $
|
||||
# $NetBSD: Makefile,v 1.53 2014/08/08 16:56:31 joerg Exp $
|
||||
|
||||
S= ${.CURDIR}/../../../..
|
||||
|
||||
|
@ -7,7 +7,7 @@ FILES= ${PROG}.elf ${PROG}.xcf
|
|||
SRCS= Locore.c boot.c ofdev.c hfs.c net.c netif_of.c alloc.c vers.c
|
||||
XCOFFXTRA= Xcoffxtra.c
|
||||
XCOFFXTRAOBJ= Xcoffxtra.o
|
||||
CFLAGS+= -msoft-float -mmultiple -ffreestanding
|
||||
CFLAGS+= -msoft-float -ffreestanding
|
||||
CFLAGS+= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith
|
||||
#CPPFLAGS+= -DDEBUG -DNETIF_DEBUG
|
||||
CPPFLAGS+= -D_STANDALONE -DSUPPORT_DHCP
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.29 2014/01/12 15:26:30 tsutsui Exp $
|
||||
# $NetBSD: Makefile,v 1.30 2014/08/08 16:56:31 joerg Exp $
|
||||
|
||||
S!= cd ${.CURDIR}/../../../.. ; pwd
|
||||
|
||||
|
@ -16,7 +16,7 @@ CPPFLAGS+= -DHEAP_VARIABLE
|
|||
.include <bsd.own.mk>
|
||||
.include <bsd.klinks.mk>
|
||||
|
||||
DBG= -Os -mmultiple
|
||||
DBG= -Os
|
||||
|
||||
SRCS+= ofwmagic.S
|
||||
.PATH: ${S}/arch/powerpc/powerpc
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile.powerpc,v 1.55 2014/08/05 15:40:59 apb Exp $
|
||||
# $NetBSD: Makefile.powerpc,v 1.56 2014/08/08 16:56:31 joerg Exp $
|
||||
#
|
||||
# Makefile for NetBSD
|
||||
#
|
||||
|
@ -46,7 +46,6 @@ CFLAGS+= -Wa,-maltivec
|
|||
.if ${PPCDIR} == "booke"
|
||||
DEFCOPTS= -O2
|
||||
CFLAGS+= -fstack-protector
|
||||
CFLAGS+= -mmultiple -misel
|
||||
.endif
|
||||
CFLAGS+= -msdata=none
|
||||
CFLAGS+= -msoft-float ${CCPUOPTS}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: INSTALL,v 1.59 2013/04/27 21:43:39 christos Exp $
|
||||
# $NetBSD: INSTALL,v 1.60 2014/08/08 16:56:31 joerg Exp $
|
||||
#
|
||||
# INSTALL -- Installation kernel
|
||||
#
|
||||
|
@ -7,7 +7,7 @@ include "arch/prep/conf/std.prep"
|
|||
|
||||
#options INCLUDE_CONFIG_FILE # embed config file in kernel binary
|
||||
|
||||
makeoptions COPTS="-Os -mmultiple" # -Os -mmultiple to reduce size.
|
||||
makeoptions COPTS="-Os" # Reduce size.
|
||||
|
||||
# Enable the hooks used for initializing the ram-disk.
|
||||
options MEMORY_DISK_HOOKS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: INSTALL_SMALL,v 1.14 2012/08/17 20:11:41 abs Exp $
|
||||
# $NetBSD: INSTALL_SMALL,v 1.15 2014/08/08 16:56:31 joerg Exp $
|
||||
#
|
||||
# INSTALL -- Installation kernel
|
||||
#
|
||||
|
@ -7,7 +7,7 @@ include "arch/prep/conf/std.prep"
|
|||
|
||||
#options INCLUDE_CONFIG_FILE # embed config file in kernel binary
|
||||
|
||||
makeoptions COPTS="-Os -mmultiple" # -Os -mmultiple to reduce size.
|
||||
makeoptions COPTS="-Os" # Reduce size.
|
||||
|
||||
# Enable the hooks used for initializing the ram-disk.
|
||||
options MEMORY_DISK_HOOKS
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.28 2014/01/12 15:26:30 tsutsui Exp $
|
||||
# $NetBSD: Makefile,v 1.29 2014/08/08 16:56:31 joerg Exp $
|
||||
|
||||
NOMAN= # defined
|
||||
|
||||
|
@ -24,7 +24,7 @@ SRCS+= filesystem.c inkernel.c io.c tgets.c prf.c monitor.c
|
|||
SRCS+= kbd.c ns16550.c vers.c vreset.c vga.c
|
||||
SRCS+= pci.c sd.c siop.c
|
||||
|
||||
CFLAGS= -Os -mmultiple -ffreestanding
|
||||
CFLAGS= -Os -ffreestanding
|
||||
CFLAGS+= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes
|
||||
AFLAGS= -x assembler-with-cpp
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.11 2013/08/21 06:49:45 matt Exp $
|
||||
# $NetBSD: Makefile,v 1.12 2014/08/08 16:56:31 joerg Exp $
|
||||
|
||||
S= ${.CURDIR}/../../../..
|
||||
|
||||
|
@ -9,7 +9,7 @@ CPPFLAGS+= -D__daddr_t=int32_t
|
|||
CPPFLAGS+= -I. -I${S} -I${.OBJDIR}
|
||||
CPPFLAGS+= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes
|
||||
|
||||
CFLAGS= -Os -mmultiple -ffreestanding
|
||||
CFLAGS= -Os -ffreestanding
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
.include <bsd.klinks.mk>
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
# $NetBSD: INSTALL,v 1.1 2009/04/30 12:47:40 tsutsui Exp $
|
||||
# $NetBSD: INSTALL,v 1.2 2014/08/08 16:56:32 joerg Exp $
|
||||
|
||||
include "arch/rs6000/conf/GENERIC"
|
||||
|
||||
no options INCLUDE_CONFIG_FILE
|
||||
|
||||
makeoptions COPTS="-Os -mmultiple"
|
||||
makeoptions COPTS="-Os" # Reduce size.
|
||||
|
||||
options MEMORY_DISK_HOOKS
|
||||
options MEMORY_DISK_IS_ROOT # Force root on ram-disk
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.6 2014/01/12 15:26:30 tsutsui Exp $
|
||||
# $NetBSD: Makefile,v 1.7 2014/08/08 16:56:32 joerg Exp $
|
||||
|
||||
NOMAN= # defined
|
||||
|
||||
|
@ -25,7 +25,7 @@ SRCS+= filesystem.c inkernel.c io.c tgets.c prf.c monitor.c
|
|||
SRCS+= ns16550.c vers.c
|
||||
SRCS+= iplcb.c
|
||||
|
||||
CFLAGS= -Os -mmultiple -ffreestanding
|
||||
CFLAGS= -Os -ffreestanding
|
||||
CFLAGS+= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes
|
||||
AFLAGS= -x assembler-with-cpp
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.3 2013/08/21 06:20:49 matt Exp $
|
||||
# $NetBSD: Makefile,v 1.4 2014/08/08 16:56:32 joerg Exp $
|
||||
|
||||
S= ${.CURDIR}/../../../..
|
||||
|
||||
|
@ -11,7 +11,7 @@ CPPFLAGS+= -D__daddr_t=int32_t
|
|||
CPPFLAGS+= -I. -I${S} -I${.OBJDIR}
|
||||
CPPFLAGS+= -Werror -Wall -Wstrict-prototypes -Wmissing-prototypes -Wno-pointer-sign
|
||||
|
||||
CFLAGS= -Os -mmultiple -ffreestanding
|
||||
CFLAGS= -Os -ffreestanding
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: Makefile,v 1.14 2014/01/12 15:26:30 tsutsui Exp $
|
||||
# $NetBSD: Makefile,v 1.15 2014/08/08 16:56:32 joerg Exp $
|
||||
|
||||
S= ${.CURDIR}/../../../..
|
||||
|
||||
|
@ -10,7 +10,7 @@ SRCS+= nif.c fxp.c tlp.c rge.c skg.c stg.c
|
|||
SRCS+= dsk.c pciide.c siisata.c
|
||||
SRCS+= exception.c vers.c
|
||||
CLEANFILES+= vers.c ${PROG} ${PROG}.bin ${PROG}.img
|
||||
CFLAGS+= -Wall -Wno-main -ffreestanding -msoft-float -mmultiple
|
||||
CFLAGS+= -Wall -Wno-main -ffreestanding -msoft-float
|
||||
CFLAGS+= -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith
|
||||
CPPFLAGS+= -D_STANDALONE -DSUPPORT_DHCP -DLIBSA_PRINTF_WIDTH_SUPPORT
|
||||
#CPPFLAGS+= -DCONSNAME=\"com\" -DCONSPORT=0x3f8 -DCONSSPEED=115200
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# $NetBSD: bsd.powerpc-booke.mk,v 1.1 2011/06/15 09:45:59 mrg Exp $
|
||||
# $NetBSD: bsd.powerpc-booke.mk,v 1.2 2014/08/08 16:56:32 joerg Exp $
|
||||
|
||||
.ifndef _BSD_POWERPC_BOOKE_MK_
|
||||
_BSD_POWERPC_BOOKE_MK_=1
|
||||
|
@ -7,7 +7,7 @@ KMODULEARCHDIR:= powerpc-booke
|
|||
|
||||
# gcc emits bad code with these options
|
||||
#CPPFLAGS+= -mcpu=8548
|
||||
CPPFLAGS+= -mmultiple -mno-string -misel -Wa,-me500
|
||||
CPPFLAGS+= -misel -Wa,-me500
|
||||
PPC_BOOKE= 1
|
||||
|
||||
# hack into bsd.kmodule.mk
|
||||
|
|
Loading…
Reference in New Issue