diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2011-03-26 01:07:12 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2011-03-26 01:07:12 +0000 |
commit | d46648401aee20c4983693e87620f84563e41cb6 (patch) | |
tree | 382c5fca0553805fc90c7540e5d3154787ba9786 | |
parent | b179f71e7dbb7419149069faaaeff8fa06daa85c (diff) |
global cflags: remove -funit-at-a-time, it is ignored by recent compilers. instead add -fno-caller-saves, which improves compression ratio for generated code with no apparent negative effects on performance
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26300 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | include/target.mk | 16 | ||||
-rw-r--r-- | target/linux/ar71xx/Makefile | 2 | ||||
-rw-r--r-- | target/linux/at91/Makefile | 2 | ||||
-rw-r--r-- | target/linux/cns21xx/Makefile | 2 | ||||
-rw-r--r-- | target/linux/cns3xxx/Makefile | 2 | ||||
-rw-r--r-- | target/linux/cobalt/Makefile | 2 | ||||
-rw-r--r-- | target/linux/ep93xx/Makefile | 2 | ||||
-rw-r--r-- | target/linux/gemini/Makefile | 2 | ||||
-rw-r--r-- | target/linux/goldfish/Makefile | 2 | ||||
-rw-r--r-- | target/linux/imx21/Makefile | 2 | ||||
-rw-r--r-- | target/linux/lantiq/Makefile | 2 | ||||
-rw-r--r-- | target/linux/leon/Makefile | 2 | ||||
-rw-r--r-- | target/linux/malta/Makefile | 2 | ||||
-rw-r--r-- | target/linux/mpc52xx/Makefile | 2 | ||||
-rw-r--r-- | target/linux/mpc83xx/Makefile | 2 | ||||
-rw-r--r-- | target/linux/mpc85xx/Makefile | 2 | ||||
-rw-r--r-- | target/linux/octeon/Makefile | 2 | ||||
-rw-r--r-- | target/linux/orion/Makefile | 2 | ||||
-rw-r--r-- | target/linux/ppc40x/Makefile | 2 | ||||
-rw-r--r-- | target/linux/ppc44x/Makefile | 2 | ||||
-rw-r--r-- | target/linux/ramips/Makefile | 2 | ||||
-rw-r--r-- | target/linux/rdc/Makefile | 2 | ||||
-rw-r--r-- | target/linux/realview/Makefile | 2 | ||||
-rw-r--r-- | target/linux/s3c24xx/Makefile | 2 | ||||
-rw-r--r-- | target/linux/sibyte/Makefile | 2 |
25 files changed, 32 insertions, 32 deletions
diff --git a/include/target.mk b/include/target.mk index ef5a65665..e1f4dc6ca 100644 --- a/include/target.mk +++ b/include/target.mk @@ -157,17 +157,17 @@ ifeq ($(DUMP),1) # remove duplicates FEATURES:=$(sort $(FEATURES)) endif - DEFAULT_CFLAGS_i386=-O2 -pipe -march=i486 -funit-at-a-time - DEFAULT_CFLAGS_x86_64=-O2 -pipe -march=athlon64 -funit-at-a-time - DEFAULT_CFLAGS_m68k=-Os -pipe -mcfv4e -funit-at-a-time - DEFAULT_CFLAGS_mips=-Os -pipe -mips32 -mtune=mips32 -funit-at-a-time + DEFAULT_CFLAGS_i386=-O2 -pipe -march=i486 -fno-caller-saves + DEFAULT_CFLAGS_x86_64=-O2 -pipe -march=athlon64 -fno-caller-saves + DEFAULT_CFLAGS_m68k=-Os -pipe -mcfv4e -fno-caller-saves + DEFAULT_CFLAGS_mips=-Os -pipe -mips32 -mtune=mips32 -fno-caller-saves DEFAULT_CFLAGS_mipsel=$(DEFAULT_CFLAGS_mips) - DEFAULT_CFLAGS_mips64=-Os -pipe -mips64 -mtune=mips64 -mabi=64 -funit-at-a-time + DEFAULT_CFLAGS_mips64=-Os -pipe -mips64 -mtune=mips64 -mabi=64 -fno-caller-saves DEFAULT_CFLAGS_mips64el=$(DEFAULT_CFLAGS_mips64) - DEFAULT_CFLAGS_sparc=-Os -pipe -mcpu=ultrasparc -funit-at-a-time - DEFAULT_CFLAGS_arm=-Os -pipe -march=armv5te -mtune=xscale -funit-at-a-time + DEFAULT_CFLAGS_sparc=-Os -pipe -mcpu=ultrasparc -fno-caller-saves + DEFAULT_CFLAGS_arm=-Os -pipe -march=armv5te -mtune=xscale -fno-caller-saves DEFAULT_CFLAGS_armeb=$(DEFAULT_CFLAGS_arm) - DEFAULT_CFLAGS=$(if $(DEFAULT_CFLAGS_$(ARCH)),$(DEFAULT_CFLAGS_$(ARCH)),-Os -pipe -funit-at-a-time) + DEFAULT_CFLAGS=$(if $(DEFAULT_CFLAGS_$(ARCH)),$(DEFAULT_CFLAGS_$(ARCH)),-Os -pipe -fno-caller-saves) endif define BuildTargets/DumpCurrent diff --git a/target/linux/ar71xx/Makefile b/target/linux/ar71xx/Makefile index 43a4c6a2d..5b17f90ec 100644 --- a/target/linux/ar71xx/Makefile +++ b/target/linux/ar71xx/Makefile @@ -10,7 +10,7 @@ ARCH:=mips BOARD:=ar71xx BOARDNAME:=Atheros AR71xx/AR7240/AR913x FEATURES:=squashfs jffs2 targz -CFLAGS:=-Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time +CFLAGS:=-Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves SUBTARGETS:=generic nand LINUX_VERSION:=2.6.37.4 diff --git a/target/linux/at91/Makefile b/target/linux/at91/Makefile index 9808255bc..8225791b8 100644 --- a/target/linux/at91/Makefile +++ b/target/linux/at91/Makefile @@ -11,7 +11,7 @@ BOARD:=at91 MAINTAINER:=Claudio Mignanti <c.mignanti@gmail.com> BOARDNAME:=Atmel AT91 FEATURES:=squashfs jffs2 targz -CFLAGS:=-Os -pipe -march=armv5te -mtune=arm926ej-s -funit-at-a-time +CFLAGS:=-Os -pipe -march=armv5te -mtune=arm926ej-s -fno-caller-saves SUBTARGETS:=netus tqma9263 LINUX_VERSION:=2.6.38 diff --git a/target/linux/cns21xx/Makefile b/target/linux/cns21xx/Makefile index 76753fb16..6e5fa6f56 100644 --- a/target/linux/cns21xx/Makefile +++ b/target/linux/cns21xx/Makefile @@ -10,7 +10,7 @@ ARCH:=arm BOARD:=cns21xx BOARDNAME:=Cavium Networks CNS21xx FEATURES:=squashfs broken -CFLAGS:=-Os -pipe -march=armv4 -mtune=fa526 -funit-at-a-time +CFLAGS:=-Os -pipe -march=armv4 -mtune=fa526 -fno-caller-saves LINUX_VERSION:=2.6.36.4 diff --git a/target/linux/cns3xxx/Makefile b/target/linux/cns3xxx/Makefile index c7f55ee5c..202cd029c 100644 --- a/target/linux/cns3xxx/Makefile +++ b/target/linux/cns3xxx/Makefile @@ -10,7 +10,7 @@ ARCH:=arm BOARD:=cns3xxx BOARDNAME:=Cavium Networks Econa CNS3xxx FEATURES:=squashfs fpu gpio -CFLAGS:=-Os -pipe -march=armv6k -mtune=mpcore -mfloat-abi=softfp -mfpu=vfp -funit-at-a-time +CFLAGS:=-Os -pipe -march=armv6k -mtune=mpcore -mfloat-abi=softfp -mfpu=vfp -fno-caller-saves MAINTAINER:=Imre Kaloz <kaloz@openwrt.org> LINUX_VERSION:=2.6.31.14 diff --git a/target/linux/cobalt/Makefile b/target/linux/cobalt/Makefile index 8952602c1..81c9839be 100644 --- a/target/linux/cobalt/Makefile +++ b/target/linux/cobalt/Makefile @@ -10,7 +10,7 @@ ARCH:=mipsel BOARD:=cobalt BOARDNAME:=Cobalt Microservers FEATURES:=targz pci ext4 -CFLAGS:=-O2 -pipe -mtune=r5000 -funit-at-a-time +CFLAGS:=-O2 -pipe -mtune=r5000 -fno-caller-saves LINUX_VERSION:=2.6.32.33 diff --git a/target/linux/ep93xx/Makefile b/target/linux/ep93xx/Makefile index d7662441a..033d766ae 100644 --- a/target/linux/ep93xx/Makefile +++ b/target/linux/ep93xx/Makefile @@ -10,7 +10,7 @@ ARCH:=arm BOARD:=ep93xx BOARDNAME:=Cirrus Logic EP93xx FEATURES:=squashfs jffs2 ext4 targz usb -CFLAGS:=-Os -pipe -march=armv4t -funit-at-a-time +CFLAGS:=-Os -pipe -march=armv4t -fno-caller-saves LINUX_VERSION:=2.6.36.4 diff --git a/target/linux/gemini/Makefile b/target/linux/gemini/Makefile index 9a63f751e..ee602eef7 100644 --- a/target/linux/gemini/Makefile +++ b/target/linux/gemini/Makefile @@ -10,7 +10,7 @@ ARCH:=arm BOARD:=gemini BOARDNAME:=Cortina Systems CS351x FEATURES:=squashfs -CFLAGS:=-Os -pipe -march=armv4 -mtune=fa526 -funit-at-a-time +CFLAGS:=-Os -pipe -march=armv4 -mtune=fa526 -fno-caller-saves MAINTAINER:=Imre Kaloz <kaloz@openwrt.org> LINUX_VERSION:=2.6.37.4 diff --git a/target/linux/goldfish/Makefile b/target/linux/goldfish/Makefile index 84342fded..8bb3e61b8 100644 --- a/target/linux/goldfish/Makefile +++ b/target/linux/goldfish/Makefile @@ -10,7 +10,7 @@ ARCH:=arm BOARD:=goldfish BOARDNAME:=Goldfish (Android Emulator) FEATURES:= -CFLAGS:=-O2 -pipe -march=armv5te -mtune=xscale -funit-at-a-time +CFLAGS:=-O2 -pipe -march=armv5te -mtune=xscale -fno-caller-saves LINUX_VERSION:=2.6.30.10 diff --git a/target/linux/imx21/Makefile b/target/linux/imx21/Makefile index be326af2f..8d46dd182 100644 --- a/target/linux/imx21/Makefile +++ b/target/linux/imx21/Makefile @@ -10,7 +10,7 @@ ARCH:=arm BOARD:=imx21 BOARDNAME:=Freescale i.MX21 FEATURES:=jffs2 broken -CFLAGS:=-Os -pipe -march=armv5te -mtune=arm926ej-s -funit-at-a-time +CFLAGS:=-Os -pipe -march=armv5te -mtune=arm926ej-s -fno-caller-saves LINUX_VERSION:=2.6.37.4 diff --git a/target/linux/lantiq/Makefile b/target/linux/lantiq/Makefile index dfaccbb83..05a41beb4 100644 --- a/target/linux/lantiq/Makefile +++ b/target/linux/lantiq/Makefile @@ -14,7 +14,7 @@ SUBTARGETS:=falcon xway LINUX_VERSION:=2.6.37.4 -CFLAGS=-Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time +CFLAGS=-Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves include $(INCLUDE_DIR)/target.mk diff --git a/target/linux/leon/Makefile b/target/linux/leon/Makefile index 34e206c28..561f138c8 100644 --- a/target/linux/leon/Makefile +++ b/target/linux/leon/Makefile @@ -11,7 +11,7 @@ BOARD:=leon BOARDNAME:=LEON FEATURES+=fpu tgz -CFLAGS:=-Os -pipe -mcpu=v8 -funit-at-a-time +CFLAGS:=-Os -pipe -mcpu=v8 -fno-caller-saves KERNELNAME:="uImage" LINUX_VERSION:=2.6.36.4 diff --git a/target/linux/malta/Makefile b/target/linux/malta/Makefile index 0942e6b6a..8cd200aaf 100644 --- a/target/linux/malta/Makefile +++ b/target/linux/malta/Makefile @@ -8,7 +8,7 @@ include $(TOPDIR)/rules.mk BOARD:=malta BOARDNAME:=MIPS Malta CoreLV board (qemu) -CFLAGS:=-Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time +CFLAGS:=-Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves SUBTARGETS:=le be INITRAMFS_EXTRA_FILES:= diff --git a/target/linux/mpc52xx/Makefile b/target/linux/mpc52xx/Makefile index b4649e45c..3d9c47017 100644 --- a/target/linux/mpc52xx/Makefile +++ b/target/linux/mpc52xx/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk ARCH:=powerpc BOARD:=mpc52xx BOARDNAME:=Freescale MPC52xx -CFLAGS:=-Os -pipe -funit-at-a-time -mcpu=603e +CFLAGS:=-Os -pipe -fno-caller-saves -mcpu=603e FEATURES:=targz ext4 LINUX_VERSION:=2.6.30.10 diff --git a/target/linux/mpc83xx/Makefile b/target/linux/mpc83xx/Makefile index d0ba52cce..45ad9bcda 100644 --- a/target/linux/mpc83xx/Makefile +++ b/target/linux/mpc83xx/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk ARCH:=powerpc BOARD:=mpc83xx BOARDNAME:=Freescale MPC83xx -CFLAGS:=-Os -pipe -funit-at-a-time -mcpu=603e +CFLAGS:=-Os -pipe -fno-caller-saves -mcpu=603e FEATURES:=squashfs targz broken MAINTAINER:=Imre Kaloz <kaloz@openwrt.org> diff --git a/target/linux/mpc85xx/Makefile b/target/linux/mpc85xx/Makefile index 7fbef341b..df33596d8 100644 --- a/target/linux/mpc85xx/Makefile +++ b/target/linux/mpc85xx/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk ARCH:=powerpc BOARD:=mpc85xx BOARDNAME:=Freescale MPC85xx -CFLAGS:=-Os -pipe -funit-at-a-time -mcpu=8540 +CFLAGS:=-Os -pipe -fno-caller-saves -mcpu=8540 FEATURES:=spe_fpu ramdisk MAINTAINER:=Imre Kaloz <kaloz@openwrt.org> diff --git a/target/linux/octeon/Makefile b/target/linux/octeon/Makefile index 236a97f1d..4d79a1aa7 100644 --- a/target/linux/octeon/Makefile +++ b/target/linux/octeon/Makefile @@ -10,7 +10,7 @@ ARCH:=mips BOARD:=octeon BOARDNAME:=Cavium Networks Octeon FEATURES:=squashfs jffs2 pci usb -CFLAGS:=-Os -pipe -march=octeon -funit-at-a-time +CFLAGS:=-Os -pipe -march=octeon -fno-caller-saves LINUX_VERSION:=2.6.37.4 diff --git a/target/linux/orion/Makefile b/target/linux/orion/Makefile index 88960a78d..feb07492c 100644 --- a/target/linux/orion/Makefile +++ b/target/linux/orion/Makefile @@ -10,7 +10,7 @@ ARCH:=arm BOARD:=orion BOARDNAME:=Marvell Orion SUBTARGETS:=generic harddisk -CFLAGS=-Os -pipe -march=armv5t -mtune=xscale -funit-at-a-time +CFLAGS=-Os -pipe -march=armv5t -mtune=xscale -fno-caller-saves MAINTAINER:=Imre Kaloz <kaloz@openwrt.org> LINUX_VERSION:=2.6.37.4 diff --git a/target/linux/ppc40x/Makefile b/target/linux/ppc40x/Makefile index 6c5758af5..a889c3492 100644 --- a/target/linux/ppc40x/Makefile +++ b/target/linux/ppc40x/Makefile @@ -10,7 +10,7 @@ ARCH:=powerpc BOARD:=ppc40x BOARDNAME:=AMCC/IBM PPC40x FEATURES:=squashfs -CFLAGS:=-Os -pipe -funit-at-a-time -mcpu=405 +CFLAGS:=-Os -pipe -fno-caller-saves -mcpu=405 MAINTAINER:=Imre Kaloz <kaloz@openwrt.org> LINUX_VERSION:=2.6.32.33 diff --git a/target/linux/ppc44x/Makefile b/target/linux/ppc44x/Makefile index 17f74d2a9..b13261a9d 100644 --- a/target/linux/ppc44x/Makefile +++ b/target/linux/ppc44x/Makefile @@ -10,7 +10,7 @@ ARCH:=powerpc BOARD:=ppc44x BOARDNAME:=AMCC/IBM PPC44x FEATURES:=squashfs -CFLAGS:=-Os -pipe -funit-at-a-time -mcpu=440 +CFLAGS:=-Os -pipe -fno-caller-saves -mcpu=440 MAINTAINER:=Imre Kaloz <kaloz@openwrt.org> LINUX_VERSION:=2.6.32.33 diff --git a/target/linux/ramips/Makefile b/target/linux/ramips/Makefile index f629170ec..10c145a03 100644 --- a/target/linux/ramips/Makefile +++ b/target/linux/ramips/Makefile @@ -10,7 +10,7 @@ ARCH:=mipsel BOARD:=ramips BOARDNAME:=Ralink RT288x/RT305x SUBTARGETS:=rt288x rt305x -CFLAGS:=-Os -pipe -mips32r2 -mtune=mips32r2 -funit-at-a-time +CFLAGS:=-Os -pipe -mips32r2 -mtune=mips32r2 -fno-caller-saves FEATURES:=squashfs LINUX_VERSION:=2.6.36.4 diff --git a/target/linux/rdc/Makefile b/target/linux/rdc/Makefile index 69099b257..e09642e20 100644 --- a/target/linux/rdc/Makefile +++ b/target/linux/rdc/Makefile @@ -10,7 +10,7 @@ ARCH:=i386 BOARD:=rdc BOARDNAME:=RDC 321x FEATURES:=squashfs jffs2 pci usb pcmcia -CFLAGS:=-Os -pipe -march=i486 -mtune=i486 -funit-at-a-time +CFLAGS:=-Os -pipe -march=i486 -mtune=i486 -fno-caller-saves LINUX_VERSION:=2.6.32.33 diff --git a/target/linux/realview/Makefile b/target/linux/realview/Makefile index 5785fdd47..ddc8d70ec 100644 --- a/target/linux/realview/Makefile +++ b/target/linux/realview/Makefile @@ -10,7 +10,7 @@ ARCH:=arm BOARD:=realview BOARDNAME:=ARM Ltd. Realview board (qemu) FEATURES:=squashfs jffs2 fpu -CFLAGS:=-Os -pipe -march=armv6k -mtune=mpcore -mfloat-abi=softfp -mfpu=vfp -funit-at-a-time +CFLAGS:=-Os -pipe -march=armv6k -mtune=mpcore -mfloat-abi=softfp -mfpu=vfp -fno-caller-saves LINUX_VERSION:=2.6.37.4 diff --git a/target/linux/s3c24xx/Makefile b/target/linux/s3c24xx/Makefile index 0a051ff13..57f6aa3c7 100644 --- a/target/linux/s3c24xx/Makefile +++ b/target/linux/s3c24xx/Makefile @@ -10,7 +10,7 @@ ARCH:=arm BOARD:=s3c24xx BOARDNAME:=Samsung S3C24xx FEATURES:=jffs2 -CFLAGS:=-O2 -pipe -march=armv4t -mtune=arm920t -funit-at-a-time +CFLAGS:=-O2 -pipe -march=armv4t -mtune=arm920t -fno-caller-saves SUBTARGETS:=openmoko-gta02 LINUX_VERSION:=2.6.30.10 diff --git a/target/linux/sibyte/Makefile b/target/linux/sibyte/Makefile index 4a9c6d91b..2240e94e1 100644 --- a/target/linux/sibyte/Makefile +++ b/target/linux/sibyte/Makefile @@ -10,7 +10,7 @@ ARCH:=mips BOARD:=sibyte BOARDNAME:=Broadcom/SiByte SB-1 FEATURES:=fpu ramdisk -CFLAGS:=-Os -pipe -march=sb1 -funit-at-a-time +CFLAGS:=-Os -pipe -march=sb1 -fno-caller-saves MAINTAINER:=Imre Kaloz <kaloz@openwrt.org> LINUX_VERSION:=2.6.37.4 |