diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-04-28 20:02:29 +0000 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-04-28 20:02:29 +0000 |
commit | 3737c0363050b5f2f3a9ba5d4daac6881069d369 (patch) | |
tree | 7afa07e56f15652678fcb4d57832f1ea6d06a158 | |
parent | 15545b1db95c6d2db984c4c2f4c9821bb5d729d3 (diff) | |
download | busybox-w32-3737c0363050b5f2f3a9ba5d4daac6881069d369.tar.gz busybox-w32-3737c0363050b5f2f3a9ba5d4daac6881069d369.tar.bz2 busybox-w32-3737c0363050b5f2f3a9ba5d4daac6881069d369.zip |
- rerun gcse pass after reload, enable whole-program iff we are not building
the lib (due to bug in gcc; see comment.)
I would have run the testsuite to check if everything is still behaving, but
unfortunately i cannot run the testsuite anymore: it just sits there and does
nothing even with a pristine checkout and an old gcc.
srcdir=/tmp/busybox/testsuite /tmp/busybox/testsuite/runtest
PASS: Applet order
FAIL: Common typos
PASS: Obsolete function usage
PASS: Obsolete function usage
<spins, ^C>
make[1]: *** [check] Interrupt
make: *** [check] Interrupt
I've just corrected that wrong double-printing.
Anyway. with gcc-4.1-HEAD from earlier today, we now have for
defconfig+ COMPILE_AT_ONCE:
880 -rwxr-xr-x 1 433 433 893476 Apr 28 21:41 busybox.oorig-4.0
860 -rwxr-xr-x 1 433 433 874560 Apr 28 21:36 busybox.oorig
844 -rwxr-xr-x 1 433 433 858752 Apr 28 21:49 busybox
text data bss dec hex filename
879920 11568 1039148 1930636 1d758c busybox.oorig-4.0
862802 10192 1038796 1911790 1d2bee busybox.oorig
848066 9100 1037536 1894702 1ce92e busybox
values for 4.0.2 just added for reference..
-rw-r--r-- | Rules.mak | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -144,8 +144,12 @@ ifeq ($(strip $(shell [ $(CC_MAJOR) -ge 3 ] ; echo $$?)),0) | |||
144 | CFLAGS_COMBINE:=$(call check_gcc,--combine,) | 144 | CFLAGS_COMBINE:=$(call check_gcc,--combine,) |
145 | endif | 145 | endif |
146 | OPTIMIZATION+=$(call check_gcc,-funit-at-a-time,) | 146 | OPTIMIZATION+=$(call check_gcc,-funit-at-a-time,) |
147 | OPTIMIZATION+=$(call check_gcc,-fgcse-after-reload,) | ||
148 | ifneq ($(CONFIG_BUILD_LIBBUSYBOX),y) | ||
147 | # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25795 | 149 | # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25795 |
148 | #PROG_CFLAGS+=$(call check_gcc,-fwhole-program,) | 150 | # This prevents us from using -fwhole-program when we build the lib |
151 | PROG_CFLAGS+=$(call check_gcc,-fwhole-program,) | ||
152 | endif # CONFIG_BUILD_LIBBUSYBOX | ||
149 | endif # CONFIG_BUILD_AT_ONCE | 153 | endif # CONFIG_BUILD_AT_ONCE |
150 | 154 | ||
151 | LIB_LDFLAGS:=$(call check_ld,--enable-new-dtags,) | 155 | LIB_LDFLAGS:=$(call check_ld,--enable-new-dtags,) |
@@ -214,6 +218,10 @@ ifneq ($(EXTRAVERSION),) | |||
214 | CHECKED_CFLAGS+=$(call check_gcc,-Wstrict-prototypes,) | 218 | CHECKED_CFLAGS+=$(call check_gcc,-Wstrict-prototypes,) |
215 | CHECKED_CFLAGS+=$(call check_gcc,-Wmissing-prototypes,) | 219 | CHECKED_CFLAGS+=$(call check_gcc,-Wmissing-prototypes,) |
216 | CHECKED_CFLAGS+=$(call check_gcc,-Wmissing-declarations,) | 220 | CHECKED_CFLAGS+=$(call check_gcc,-Wmissing-declarations,) |
221 | CHECKED_CFLAGS+=$(call check_gcc,-Wunused,) | ||
222 | CHECKED_CFLAGS+=$(call check_gcc,-Winit-self,) | ||
223 | CHECKED_CFLAGS+=$(call check_gcc,-Wshadow,) | ||
224 | CHECKED_CFLAGS+=$(call check_gcc,-Wcast-align,) | ||
217 | endif | 225 | endif |
218 | STRIPCMD:=$(STRIP) -s --remove-section=.note --remove-section=.comment | 226 | STRIPCMD:=$(STRIP) -s --remove-section=.note --remove-section=.comment |
219 | ifeq ($(strip $(CONFIG_STATIC)),y) | 227 | ifeq ($(strip $(CONFIG_STATIC)),y) |