From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: openembedded-core <openembedded-core@lists.openembedded.org>
Subject: [PATCH] gcc-4.6: Some small performance tweaks
Date: Fri, 10 Feb 2012 00:06:12 +0000 [thread overview]
Message-ID: <1328832372.10451.47.camel@ted> (raw)
a) Use the system zlib to avoid building it for each gcc.
b) -initial and -intermediate don't need plugins or lto-plugin
so disable them.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
diff --git a/meta/recipes-devtools/gcc/gcc-4.6.inc b/meta/recipes-devtools/gcc/gcc-4.6.inc
index 758c93e..ece378d 100644
--- a/meta/recipes-devtools/gcc/gcc-4.6.inc
+++ b/meta/recipes-devtools/gcc/gcc-4.6.inc
@@ -23,7 +23,7 @@ BRANCH = "gcc-4_6-branch"
FILESPATH = "${@base_set_filespath([ '${FILE_DIRNAME}/gcc-4.6' ], d)}"
DEPENDS =+ "mpfr gmp libmpc"
-NATIVEDEPS = "mpfr-native gmp-native libmpc-native"
+NATIVEDEPS = "mpfr-native gmp-native libmpc-native zlib-native"
LICENSE="GPL-3.0-with-GCC-exception & GPLv3"
@@ -86,16 +86,12 @@ B = "${WORKDIR}/${BRANCH}/build.${HOST_SYS}.${TARGET_SYS}"
FORTRAN = ""
JAVA = ""
-#EXTRA_OECONF_BASE = " --enable-cheaders=c_std \
-# --enable-libssp \
-# --disable-bootstrap \
-# --disable-libgomp \
-# --disable-libmudflap"
EXTRA_OECONF_BASE = " --enable-lto \
--enable-libssp \
--disable-bootstrap \
--disable-libgomp \
--disable-libmudflap \
+ --with-system-zlib \
--with-linker-hash-style=${LINKER_HASH_STYLE} \
--enable-cheaders=c_global "
@@ -103,11 +99,17 @@ EXTRA_OECONF_INITIAL = "--disable-libmudflap \
--disable-libgomp \
--disable-libssp \
--disable-libquadmath \
+ --with-system-zlib \
+ --disable-lto \
+ --disable-plugin \
--enable-decimal-float=no"
EXTRA_OECONF_INTERMEDIATE = "--disable-libmudflap \
--disable-libgomp \
--disable-libquadmath \
+ --with-system-zlib \
+ --disable-lto \
+ --disable-plugin \
--disable-libssp"
EXTRA_OECONF_append_linux-uclibc = " --disable-decimal-float "
next reply other threads:[~2012-02-10 0:14 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-10 0:06 Richard Purdie [this message]
2012-02-10 0:39 ` [PATCH] gcc-4.6: Some small performance tweaks Khem Raj
2012-02-10 13:40 ` Richard Purdie
2012-02-11 1:58 ` Khem Raj
2012-02-11 16:24 ` Richard Purdie
2012-02-14 12:16 ` Martin Jansa
2012-02-14 18:55 ` Khem Raj
2012-02-14 19:08 ` Martin Jansa
2012-02-14 19:13 ` Khem Raj
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=1328832372.10451.47.camel@ted \
--to=richard.purdie@linuxfoundation.org \
--cc=openembedded-core@lists.openembedded.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox