global cflags: remove -funit-at-a-time, it is ignored by recent compilers. instead...
authorFelix Fietkau <nbd@openwrt.org>
Sat, 26 Mar 2011 01:07:12 +0000 (01:07 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 26 Mar 2011 01:07:12 +0000 (01:07 +0000)
SVN-Revision: 26300

25 files changed:
include/target.mk
target/linux/ar71xx/Makefile
target/linux/at91/Makefile
target/linux/cns21xx/Makefile
target/linux/cns3xxx/Makefile
target/linux/cobalt/Makefile
target/linux/ep93xx/Makefile
target/linux/gemini/Makefile
target/linux/goldfish/Makefile
target/linux/imx21/Makefile
target/linux/lantiq/Makefile
target/linux/leon/Makefile
target/linux/malta/Makefile
target/linux/mpc52xx/Makefile
target/linux/mpc83xx/Makefile
target/linux/mpc85xx/Makefile
target/linux/octeon/Makefile
target/linux/orion/Makefile
target/linux/ppc40x/Makefile
target/linux/ppc44x/Makefile
target/linux/ramips/Makefile
target/linux/rdc/Makefile
target/linux/realview/Makefile
target/linux/s3c24xx/Makefile
target/linux/sibyte/Makefile

index ef5a65665c7bba4f9c9c5734b8887f9b960eda05..e1f4dc6ca96a53a4a339b8c3c266ddcb1e840576 100644 (file)
@@ -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
index 43a4c6a2d2cc4d9a093b0b298c6c058433b71975..5b17f90ecfaaf77e4445177923ff9a857ac9e220 100644 (file)
@@ -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
index 9808255bcec5094224e91ec014d3a9f45d1b8df6..8225791b8614f6c3210aab91fb07b8044067d9f0 100644 (file)
@@ -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
index 76753fb16c1b3382e4579a9d982ee4a4f44d77b6..6e5fa6f5650a1536d43d2d1b20fff9d469878d73 100644 (file)
@@ -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
 
index c7f55ee5cd69aa9f48bae0b25894fef6e0d2656d..202cd029ce6082c93aaa02255614f000f19e797f 100644 (file)
@@ -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
index 8952602c1bd239b587720eba62e1a19029948846..81c9839be0945431e6993aeeceb8f400d4dbe433 100644 (file)
@@ -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
 
index d7662441a92044532425ae2ea82c19c2bc4113ce..033d766aea9c94cf16cc6e41e2b85486a77751a2 100644 (file)
@@ -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
 
index 9a63f751e1185bc30c5ce2b3a3045dc6cdb7e750..ee602eef7263b64ba564e89faf9892ced51d37f2 100644 (file)
@@ -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
index 84342fded7a305d47217c959aaa2e0dd28c110ed..8bb3e61b8b5e6fc8afeba1da39f460c2c46c068d 100644 (file)
@@ -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
 
index be326af2f812a25ef83c6b99caef16467f9e44c8..8d46dd182ef36006dc196b1f4b852c564c24ee04 100644 (file)
@@ -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
 
index dfaccbb830925a029ec7e7947d88e03bb500d683..05a41beb4a60ae1ba6b31a4e3ea7c087130fffea 100644 (file)
@@ -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
 
index 34e206c286b47cde236f36307056f702af232e76..561f138c8ff97b245f789995af24a030144021c9 100644 (file)
@@ -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
index 0942e6b6aecbcac5f44c0de83936021c4d0aa0a7..8cd200aaf036b14584a6f2fdeeae3f82945b9503 100644 (file)
@@ -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:=
 
index b4649e45c4b2fee3c4b2d5e6cd529f00c897d2f2..3d9c4701776a314967454c25013a0f8f928ecd32 100644 (file)
@@ -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
index d0ba52cce343da115535118534daa98dbc2dd140..45ad9bcda3180e106006a2287c9225a91296532d 100644 (file)
@@ -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>
 
index 7fbef341b129a2248b28cfc0681cd4968b12eba7..df33596d81d93a4369a7ee8d12c07b283c2686e4 100644 (file)
@@ -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>
 
index 236a97f1d0818f14464ae4c36042fe912532dcc5..4d79a1aa792e6d61214275bb8193345c8ead18f8 100644 (file)
@@ -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
 
index 88960a78d750c90c5abb9489c8e29c85c52f6776..feb07492c1ec1d8de0b5c4419107e3d234e6d715 100644 (file)
@@ -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
index 6c5758af569ca88b94be9448e316c2305e4dfd7b..a889c349200f1295f1b08375c67e760bab9d4c1c 100644 (file)
@@ -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
index 17f74d2a995ea4e9661cc0ae32a5face49c31ed5..b13261a9d2ba8055b4117ed87e78be43a9c030f8 100644 (file)
@@ -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
index f629170ecd4e9abda4ec9c9ad361c767b8a5f696..10c145a03e5125871eb2e23520836a97467eb8d9 100644 (file)
@@ -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
index 69099b25767d4cfbcc55308fe155145d13d9a2da..e09642e202f1f71888ca0f96e3ea41eaf6f923a1 100644 (file)
@@ -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
 
index 5785fdd473a90384b5d4ab76703d3fa32493bfda..ddc8d70ec92a3a8b8f425f27d933810ffdc3b69d 100644 (file)
@@ -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
 
index 0a051ff13738a7b103077e30dd3c50ff4cce647a..57f6aa3c7231d6f8420e44a7fbfdc6c7b336d3f0 100644 (file)
@@ -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
index 4a9c6d91bf61c17659b1e2129e6eba5e157e6008..2240e94e1356e8b1c3a2b1ed74a13ce903204858 100644 (file)
@@ -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