From: aldot at uclibc.org <aldot@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] svn commit: trunk/buildroot/toolchain/gcc
Date: Fri, 26 Jan 2007 06:51:39 -0800 (PST) [thread overview]
Message-ID: <20070126145139.CC2834856E@busybox.net> (raw)
Author: aldot
Date: 2007-01-26 06:51:38 -0800 (Fri, 26 Jan 2007)
New Revision: 17541
Log:
- for the native target gcc, drop --enable-optspace in favour of using the configured flags (that default to -Os anyway).
Saves about 20% size without additional configure args:
text data bss dec hex filename
4685000 17280 566360 5268640 5064a0 optspace/i586-linux-uclibc/4.2.0/cc1
3630655 15184 562172 4208011 40358b usrflags/i586-linux-uclibc/4.2.0/cc1
4853646 23532 568528 5445706 53184a optspace/i586-linux-uclibc/4.2.0/f951
3772121 21292 564148 4357561 427db9 usrflags/i586-linux-uclibc/4.2.0/f951
Modified:
trunk/buildroot/toolchain/gcc/Makefile.in
trunk/buildroot/toolchain/gcc/gcc-uclibc-3.x.mk
Changeset:
Modified: trunk/buildroot/toolchain/gcc/Makefile.in
===================================================================
--- trunk/buildroot/toolchain/gcc/Makefile.in 2007-01-26 09:07:26 UTC (rev 17540)
+++ trunk/buildroot/toolchain/gcc/Makefile.in 2007-01-26 14:51:38 UTC (rev 17541)
@@ -30,18 +30,30 @@
else
SOFT_FLOAT_CONFIG_OPTION:=--without-float
endif
+
# again... there must be a better way
ifeq ($(findstring 4.,$(GCC_VERSION)),4.)
SOFT_FLOAT_CONFIG_OPTION:=--with-float=soft
+ifeq ($(BR2_SOFT_FLOAT_FP),y)
+TARGET_SOFT_FLOAT:=-mfloat-abi=softfp
+else # no fp at all
+TARGET_SOFT_FLOAT:=-mfloat-abi=soft
endif
+else # not gcc-4.x
TARGET_SOFT_FLOAT:=-msoft-float
+endif
ARCH_FPU_SUFFIX:=_nofpu
-else
+else # no softfloat support
SOFT_FLOAT_CONFIG_OPTION:=
TARGET_SOFT_FLOAT:=
ARCH_FPU_SUFFIX:=
endif
+TARGET_GCC_FLAGS= CFLAGS_FOR_TARGET="$(TARGET_CFLAGS) $(TARGET_SOFT_FLOAT)" \
+ CXXFLAGS_FOR_TARGET="$(TARGET_CFLAGS) $(TARGET_SOFT_FLOAT)" \
+ CFLAGS="$(TARGET_CFLAGS) $(TARGET_SOFT_FLOAT)" \
+ BOOT_CFLAGS="$(TARGET_CFLAGS) $(TARGET_SOFT_FLOAT)"
+
ifeq ($(strip $(BR2_PACKAGE_GCC_TARGET)),y)
TARGETS+=gcc_target
endif
Modified: trunk/buildroot/toolchain/gcc/gcc-uclibc-3.x.mk
===================================================================
--- trunk/buildroot/toolchain/gcc/gcc-uclibc-3.x.mk 2007-01-26 09:07:26 UTC (rev 17540)
+++ trunk/buildroot/toolchain/gcc/gcc-uclibc-3.x.mk 2007-01-26 14:51:38 UTC (rev 17541)
@@ -333,7 +333,8 @@
(cd $(GCC_BUILD_DIR3); rm -rf config.cache ; \
PATH=$(TARGET_PATH) \
CC_FOR_BUILD="$(HOSTCC)" \
- BOOT_CFLAGS="$(TARGET_CFLAGS)" \
+ CFLAGS_FOR_BUILD="-g -O2" \
+ $(TARGET_GCC_FLAGS) \
$(GCC_DIR)/configure \
--prefix=/usr \
--build=$(GNU_HOST_NAME) \
@@ -342,7 +343,6 @@
--enable-languages=$(GCC_TARGET_LANGUAGES) \
--with-gxx-include-dir=/usr/include/c++ \
--disable-__cxa_atexit \
- --enable-target-optspace \
--with-gnu-ld \
$(GCC_SHARED_LIBGCC) \
$(GCC_WITH_TARGET_GMP) \
@@ -354,12 +354,13 @@
$(GCC_WITH_CPU) $(GCC_WITH_ARCH) $(GCC_WITH_TUNE) \
$(GCC_USE_SJLJ_EXCEPTIONS) \
$(DISABLE_LARGEFILE) \
- $(EXTRA_GCC_CONFIG_OPTIONS));
+ $(EXTRA_GCC_CONFIG_OPTIONS) \
+ $(EXTRA_TARGET_GCC_CONFIG_OPTIONS));
touch $@
$(GCC_BUILD_DIR3)/.compiled: $(GCC_BUILD_DIR3)/.configured
PATH=$(TARGET_PATH) \
- $(MAKE) $(TARGET_GCC_ARGS) -C $(GCC_BUILD_DIR3) all
+ $(MAKE) -C $(GCC_BUILD_DIR3) all
touch $@
#
next reply other threads:[~2007-01-26 14:51 UTC|newest]
Thread overview: 170+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-26 14:51 aldot at uclibc.org [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-03-01 20:20 [Buildroot] svn commit: trunk/buildroot/toolchain/gcc jacmet at uclibc.org
2009-01-30 13:34 jacmet at uclibc.org
2009-01-29 19:24 jacmet at uclibc.org
2009-01-29 19:13 jacmet at uclibc.org
2009-01-22 11:18 jacmet at uclibc.org
2009-01-22 10:04 jacmet at uclibc.org
2009-01-17 22:38 Frank Hoeflich
2009-01-17 23:53 ` Shinya Kuribayashi
2009-01-16 14:13 jacmet at uclibc.org
2009-01-16 14:13 jacmet at uclibc.org
2009-01-16 16:36 ` Sven Neumann
2009-01-16 19:20 ` Peter Korsgaard
2009-01-18 13:47 ` Sven Neumann
2009-01-20 9:38 ` Peter Korsgaard
2009-01-17 15:37 ` Shinya Kuribayashi
2009-01-17 16:29 ` Peter Korsgaard
2009-01-17 23:07 ` Shinya Kuribayashi
2009-01-18 8:37 ` Peter Korsgaard
2009-01-18 8:48 ` Shinya Kuribayashi
2009-01-18 11:02 ` Peter Korsgaard
2008-10-02 15:02 egtvedt at uclibc.org
2008-10-02 14:32 egtvedt at uclibc.org
2008-08-22 13:59 jacmet at uclibc.org
2008-07-08 19:31 ulf at uclibc.org
2008-06-21 19:47 jacmet at uclibc.org
2008-06-22 10:25 ` Luigi 'Comio' Mantellini
2008-06-22 11:17 ` Peter Korsgaard
2008-06-22 20:18 ` Bernhard Fischer
2008-06-22 20:52 ` Peter Korsgaard
2008-09-17 11:12 ` Fathi Boudra
2008-09-17 11:33 ` Peter Korsgaard
2008-09-17 11:45 ` Fathi Boudra
2008-09-17 14:03 ` Peter Korsgaard
2008-06-19 19:06 jacmet at uclibc.org
2008-06-18 15:46 jacmet at uclibc.org
2008-06-19 0:38 ` Hamish Moffatt
2008-06-19 7:01 ` Peter Korsgaard
2008-06-18 15:42 jacmet at uclibc.org
2008-06-18 16:33 ` Thiago A. Corrêa
2008-06-18 17:59 ` Peter Korsgaard
2008-06-18 18:29 ` Bernhard Fischer
2008-06-17 13:33 jacmet at uclibc.org
2008-06-17 13:28 jacmet at uclibc.org
2008-06-17 12:54 jacmet at uclibc.org
2008-06-17 13:10 ` Hans-Christian Egtvedt
2008-06-17 13:33 ` Peter Korsgaard
2008-06-06 12:49 jacmet at uclibc.org
2008-04-04 14:16 jacmet at uclibc.org
2008-03-30 8:07 nkukard at uclibc.org
2008-03-30 8:06 nkukard at uclibc.org
2008-03-30 8:05 nkukard at uclibc.org
2008-03-30 8:04 nkukard at uclibc.org
2007-12-17 11:37 vanokuten at uclibc.org
2007-12-13 12:10 vanokuten at uclibc.org
2007-10-20 18:09 vanokuten at uclibc.org
2007-10-19 17:51 vanokuten at uclibc.org
2007-10-12 21:01 ulf at uclibc.org
2007-10-13 8:49 ` Cristian Ionescu-Idbohrn
2007-10-13 9:57 ` Ulf Samuelsson
2007-10-13 10:19 ` Cristian Ionescu-Idbohrn
2007-10-13 11:23 ` Bernhard Fischer
2007-10-13 18:37 ` Ulf Samuelsson
2007-10-13 19:58 ` Cristian Ionescu-Idbohrn
2007-10-13 20:31 ` Ulf Samuelsson
2007-10-13 23:31 ` Cristian Ionescu-Idbohrn
2007-10-14 1:08 ` Ivan Kuten
2007-10-15 6:50 ` Ulf Samuelsson
2007-10-15 17:40 ` Cristian Ionescu-Idbohrn
2007-10-15 18:16 ` Ulf Samuelsson
2007-10-15 18:55 ` Bernhard Fischer
2007-10-15 19:27 ` Ulf Samuelsson
2007-10-13 11:25 ` Bernhard Fischer
2007-10-12 15:14 ulf at uclibc.org
2007-10-12 12:30 ulf at uclibc.org
2007-10-07 17:22 ulf at uclibc.org
2007-10-01 21:12 ulf at uclibc.org
2007-10-01 21:06 aldot at uclibc.org
2007-10-01 12:57 aldot at uclibc.org
2007-10-01 12:56 aldot at uclibc.org
2007-09-29 20:44 ulf at uclibc.org
2007-09-29 17:32 ulf at uclibc.org
2007-09-28 19:53 ulf at uclibc.org
2007-09-25 17:21 aldot at uclibc.org
2007-09-25 16:39 aldot at uclibc.org
2007-09-23 21:23 aldot at uclibc.org
2007-09-20 9:25 aldot at uclibc.org
2007-09-19 18:46 aldot at uclibc.org
2007-09-19 17:32 aldot at uclibc.org
2007-09-15 12:12 aldot at uclibc.org
2007-09-04 7:35 aldot at uclibc.org
2007-09-03 6:26 ulf at uclibc.org
2007-09-03 14:09 ` Bernhard Fischer
2007-09-03 14:29 ` Ulf Samuelsson
2007-09-03 16:22 ` Rouslan Solomakhin
2007-09-03 21:16 ` Ulf Samuelsson
2007-09-04 8:22 ` Cristian Ionescu-Idbohrn
2007-09-04 8:43 ` Peter Korsgaard
2007-09-04 7:39 ` Bernhard Fischer
2007-09-03 6:10 ulf at uclibc.org
2007-09-01 17:11 aldot at uclibc.org
2007-09-01 17:09 aldot at uclibc.org
2007-08-26 21:00 aldot at uclibc.org
2007-08-26 20:47 aldot at uclibc.org
2007-08-21 10:32 aldot at uclibc.org
2007-08-21 10:28 aldot at uclibc.org
2007-08-21 10:26 ` Cristian Ionescu-Idbohrn
2007-08-21 11:11 ` Bernhard Fischer
2007-08-19 21:15 ulf at uclibc.org
2007-08-01 19:15 ulf at uclibc.org
2007-08-01 8:58 ulf at uclibc.org
2007-07-31 15:07 aldot at uclibc.org
2007-07-30 18:24 ulf at uclibc.org
2007-07-29 17:51 ulf at uclibc.org
2007-07-29 17:43 ulf at uclibc.org
2007-07-30 7:21 ` Bernhard Fischer
2007-07-30 7:53 ` Hans-Christian Egtvedt
2007-07-30 8:39 ` Bernhard Fischer
2007-07-30 9:14 ` Hans-Christian Egtvedt
2007-07-30 9:21 ` Bernhard Fischer
2007-07-30 10:19 ` Hans-Christian Egtvedt
2007-07-30 10:32 ` Bernhard Fischer
2007-07-30 10:41 ` Hans-Christian Egtvedt
2007-07-30 14:25 ` Ulf Samuelsson
2007-07-29 17:36 ulf at uclibc.org
2007-07-30 7:19 ` Bernhard Fischer
2007-07-08 16:27 aldot at uclibc.org
2007-07-08 13:13 aldot at uclibc.org
2007-07-08 12:50 aldot at uclibc.org
2007-07-07 23:55 aldot at uclibc.org
2007-07-07 12:58 aldot at uclibc.org
2007-07-07 12:28 ulf at uclibc.org
2007-09-01 18:43 ` Bernhard Fischer
2007-09-03 7:41 ` Ulf Samuelsson
2007-07-07 7:34 ulf at uclibc.org
2007-07-07 9:33 ` Bernhard Fischer
2007-07-07 11:55 ` Ulf Samuelsson
2007-07-07 12:39 ` Bernhard Fischer
2007-07-05 5:15 sjhill at uclibc.org
2007-07-05 5:13 sjhill at uclibc.org
2007-06-28 14:05 aldot at uclibc.org
2007-06-25 7:52 aldot at uclibc.org
2007-06-24 11:30 aldot at uclibc.org
2007-05-24 21:23 jacmet at uclibc.org
2007-05-15 13:58 jacmet at uclibc.org
2007-04-13 2:04 sjhill at uclibc.org
2007-04-02 16:18 aldot at uclibc.org
2007-03-22 17:21 aldot at uclibc.org
2007-02-14 8:49 aldot at uclibc.org
2007-02-09 14:05 aldot at uclibc.org
2007-02-09 13:43 aldot at uclibc.org
2007-02-04 21:59 aldot at uclibc.org
2007-02-04 15:23 aldot at uclibc.org
2007-01-31 15:09 aldot at uclibc.org
2007-01-28 11:57 aldot at uclibc.org
2007-01-25 0:18 aldot at uclibc.org
2007-01-21 11:50 aldot at uclibc.org
2006-12-28 8:49 aldot at uclibc.org
2006-12-28 8:48 aldot at uclibc.org
2006-12-22 11:45 aldot at uclibc.org
2006-12-22 11:43 aldot at uclibc.org
2006-12-22 11:38 aldot at uclibc.org
2006-12-12 17:01 aldot at uclibc.org
2006-12-10 13:24 aldot at uclibc.org
2006-12-07 17:02 aldot at uclibc.org
2006-12-07 4:49 sjhill at uclibc.org
2006-12-02 5:15 sjhill at uclibc.org
2006-11-16 9:55 jacmet at uclibc.org
2006-10-26 15:15 jacmet at uclibc.org
2006-10-02 19:40 andersen at uclibc.org
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070126145139.CC2834856E@busybox.net \
--to=aldot@uclibc.org \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.