* [PATCH] gcc-4.6: Some small performance tweaks @ 2012-02-10 0:06 Richard Purdie 2012-02-10 0:39 ` Khem Raj 0 siblings, 1 reply; 9+ messages in thread From: Richard Purdie @ 2012-02-10 0:06 UTC (permalink / raw) To: openembedded-core 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 " ^ permalink raw reply related [flat|nested] 9+ messages in thread
* Re: [PATCH] gcc-4.6: Some small performance tweaks 2012-02-10 0:06 [PATCH] gcc-4.6: Some small performance tweaks Richard Purdie @ 2012-02-10 0:39 ` Khem Raj 2012-02-10 13:40 ` Richard Purdie 0 siblings, 1 reply; 9+ messages in thread From: Khem Raj @ 2012-02-10 0:39 UTC (permalink / raw) To: Patches and discussions about the oe-core layer On Thu, Feb 9, 2012 at 4:06 PM, Richard Purdie <richard.purdie@linuxfoundation.org> wrote: > > +NATIVEDEPS = "mpfr-native gmp-native libmpc-native zlib-native" note that we will need to ship zlib-nativesdk as well if we do this so hopefully that case is covered by this. other changes look ok to me. ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] gcc-4.6: Some small performance tweaks 2012-02-10 0:39 ` Khem Raj @ 2012-02-10 13:40 ` Richard Purdie 2012-02-11 1:58 ` Khem Raj 0 siblings, 1 reply; 9+ messages in thread From: Richard Purdie @ 2012-02-10 13:40 UTC (permalink / raw) To: Patches and discussions about the oe-core layer On Thu, 2012-02-09 at 16:39 -0800, Khem Raj wrote: > On Thu, Feb 9, 2012 at 4:06 PM, Richard Purdie > <richard.purdie@linuxfoundation.org> wrote: > > > > +NATIVEDEPS = "mpfr-native gmp-native libmpc-native zlib-native" > > > note that we will need to ship zlib-nativesdk as well if we do this > so hopefully that case is covered by this. Yes, zlib has a BBCLASSEXTEND on zlib-nativesdk so this should be fine. Cheers, Richard ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] gcc-4.6: Some small performance tweaks 2012-02-10 13:40 ` Richard Purdie @ 2012-02-11 1:58 ` Khem Raj 2012-02-11 16:24 ` Richard Purdie 0 siblings, 1 reply; 9+ messages in thread From: Khem Raj @ 2012-02-11 1:58 UTC (permalink / raw) To: Patches and discussions about the oe-core layer On (10/02/12 13:40), Richard Purdie wrote: > On Thu, 2012-02-09 at 16:39 -0800, Khem Raj wrote: > > On Thu, Feb 9, 2012 at 4:06 PM, Richard Purdie > > <richard.purdie@linuxfoundation.org> wrote: > > > > > > +NATIVEDEPS = "mpfr-native gmp-native libmpc-native zlib-native" > > > > > > note that we will need to ship zlib-nativesdk as well if we do this > > so hopefully that case is covered by this. > > Yes, zlib has a BBCLASSEXTEND on zlib-nativesdk so this should be fine. OK and this is bundled with meta-toolchain too right ? > > Cheers, > > Richard > > > _______________________________________________ > Openembedded-core mailing list > Openembedded-core@lists.openembedded.org > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core -- -Khem ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] gcc-4.6: Some small performance tweaks 2012-02-11 1:58 ` Khem Raj @ 2012-02-11 16:24 ` Richard Purdie 2012-02-14 12:16 ` Martin Jansa 0 siblings, 1 reply; 9+ messages in thread From: Richard Purdie @ 2012-02-11 16:24 UTC (permalink / raw) To: Patches and discussions about the oe-core layer On Fri, 2012-02-10 at 17:58 -0800, Khem Raj wrote: > On (10/02/12 13:40), Richard Purdie wrote: > > On Thu, 2012-02-09 at 16:39 -0800, Khem Raj wrote: > > > On Thu, Feb 9, 2012 at 4:06 PM, Richard Purdie > > > <richard.purdie@linuxfoundation.org> wrote: > > > > > > > > +NATIVEDEPS = "mpfr-native gmp-native libmpc-native zlib-native" > > > > > > > > > note that we will need to ship zlib-nativesdk as well if we do this > > > so hopefully that case is covered by this. > > > > Yes, zlib has a BBCLASSEXTEND on zlib-nativesdk so this should be fine. > > OK and this is bundled with meta-toolchain too right ? By anything that depends on it by the shlibs code in the usual way, yes. Cheers, Richard ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] gcc-4.6: Some small performance tweaks 2012-02-11 16:24 ` Richard Purdie @ 2012-02-14 12:16 ` Martin Jansa 2012-02-14 18:55 ` Khem Raj 0 siblings, 1 reply; 9+ messages in thread From: Martin Jansa @ 2012-02-14 12:16 UTC (permalink / raw) To: Patches and discussions about the oe-core layer On Sat, Feb 11, 2012 at 5:24 PM, Richard Purdie <richard.purdie@linuxfoundation.org> wrote: > On Fri, 2012-02-10 at 17:58 -0800, Khem Raj wrote: >> On (10/02/12 13:40), Richard Purdie wrote: >> > On Thu, 2012-02-09 at 16:39 -0800, Khem Raj wrote: >> > > On Thu, Feb 9, 2012 at 4:06 PM, Richard Purdie >> > > <richard.purdie@linuxfoundation.org> wrote: >> > > > >> > > > +NATIVEDEPS = "mpfr-native gmp-native libmpc-native zlib-native" >> > > >> > > >> > > note that we will need to ship zlib-nativesdk as well if we do this >> > > so hopefully that case is covered by this. >> > >> > Yes, zlib has a BBCLASSEXTEND on zlib-nativesdk so this should be fine. >> >> OK and this is bundled with meta-toolchain too right ? > > By anything that depends on it by the shlibs code in the usual way, yes. But zlib is build time dependency, isn't it? Now it fails to build target gcc because it depends only on zlib-native not target zlib and zlib.h is not found. Regards, ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] gcc-4.6: Some small performance tweaks 2012-02-14 12:16 ` Martin Jansa @ 2012-02-14 18:55 ` Khem Raj 2012-02-14 19:08 ` Martin Jansa 0 siblings, 1 reply; 9+ messages in thread From: Khem Raj @ 2012-02-14 18:55 UTC (permalink / raw) To: Patches and discussions about the oe-core layer On (14/02/12 13:16), Martin Jansa wrote: > On Sat, Feb 11, 2012 at 5:24 PM, Richard Purdie > <richard.purdie@linuxfoundation.org> wrote: > > On Fri, 2012-02-10 at 17:58 -0800, Khem Raj wrote: > >> On (10/02/12 13:40), Richard Purdie wrote: > >> > On Thu, 2012-02-09 at 16:39 -0800, Khem Raj wrote: > >> > > On Thu, Feb 9, 2012 at 4:06 PM, Richard Purdie > >> > > <richard.purdie@linuxfoundation.org> wrote: > >> > > > > >> > > > +NATIVEDEPS = "mpfr-native gmp-native libmpc-native zlib-native" > >> > > > >> > > > >> > > note that we will need to ship zlib-nativesdk as well if we do this > >> > > so hopefully that case is covered by this. > >> > > >> > Yes, zlib has a BBCLASSEXTEND on zlib-nativesdk so this should be fine. > >> > >> OK and this is bundled with meta-toolchain too right ? > > > > By anything that depends on it by the shlibs code in the usual way, yes. > > But zlib is build time dependency, isn't it? yes it must be added to target gcc recipe > > Now it fails to build target gcc because it depends only on > zlib-native not target zlib and zlib.h is not found. whats the exact error? usually zlib is needed for gcj. are you building gcj ? ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] gcc-4.6: Some small performance tweaks 2012-02-14 18:55 ` Khem Raj @ 2012-02-14 19:08 ` Martin Jansa 2012-02-14 19:13 ` Khem Raj 0 siblings, 1 reply; 9+ messages in thread From: Martin Jansa @ 2012-02-14 19:08 UTC (permalink / raw) To: Patches and discussions about the oe-core layer [-- Attachment #1: Type: text/plain, Size: 1784 bytes --] On Tue, Feb 14, 2012 at 10:55:06AM -0800, Khem Raj wrote: > On (14/02/12 13:16), Martin Jansa wrote: > > On Sat, Feb 11, 2012 at 5:24 PM, Richard Purdie > > <richard.purdie@linuxfoundation.org> wrote: > > > On Fri, 2012-02-10 at 17:58 -0800, Khem Raj wrote: > > >> On (10/02/12 13:40), Richard Purdie wrote: > > >> > On Thu, 2012-02-09 at 16:39 -0800, Khem Raj wrote: > > >> > > On Thu, Feb 9, 2012 at 4:06 PM, Richard Purdie > > >> > > <richard.purdie@linuxfoundation.org> wrote: > > >> > > > > > >> > > > +NATIVEDEPS = "mpfr-native gmp-native libmpc-native zlib-native" > > >> > > > > >> > > > > >> > > note that we will need to ship zlib-nativesdk as well if we do this > > >> > > so hopefully that case is covered by this. > > >> > > > >> > Yes, zlib has a BBCLASSEXTEND on zlib-nativesdk so this should be fine. > > >> > > >> OK and this is bundled with meta-toolchain too right ? > > > > > > By anything that depends on it by the shlibs code in the usual way, yes. > > > > But zlib is build time dependency, isn't it? > > yes it must be added to target gcc recipe > > > > > Now it fails to build target gcc because it depends only on > > zlib-native not target zlib and zlib.h is not found. > > whats the exact error? usually zlib is needed for gcj. are you building > gcj ? I don't have that log anymore, but I'm building default gcc configuration from oe-core/meta-oe (iirc without gcj) and IIRC it was from lto (gcc/lto-compress.c:#include <zlib.h>). Cheers, > > _______________________________________________ > Openembedded-core mailing list > Openembedded-core@lists.openembedded.org > http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core -- Martin 'JaMa' Jansa jabber: Martin.Jansa@gmail.com [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 205 bytes --] ^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [PATCH] gcc-4.6: Some small performance tweaks 2012-02-14 19:08 ` Martin Jansa @ 2012-02-14 19:13 ` Khem Raj 0 siblings, 0 replies; 9+ messages in thread From: Khem Raj @ 2012-02-14 19:13 UTC (permalink / raw) To: Patches and discussions about the oe-core layer On (14/02/12 20:08), Martin Jansa wrote: > On Tue, Feb 14, 2012 at 10:55:06AM -0800, Khem Raj wrote: > > On (14/02/12 13:16), Martin Jansa wrote: > > > On Sat, Feb 11, 2012 at 5:24 PM, Richard Purdie > > > <richard.purdie@linuxfoundation.org> wrote: > > > > On Fri, 2012-02-10 at 17:58 -0800, Khem Raj wrote: > > > >> On (10/02/12 13:40), Richard Purdie wrote: > > > >> > On Thu, 2012-02-09 at 16:39 -0800, Khem Raj wrote: > > > >> > > On Thu, Feb 9, 2012 at 4:06 PM, Richard Purdie > > > >> > > <richard.purdie@linuxfoundation.org> wrote: > > > >> > > > > > > >> > > > +NATIVEDEPS = "mpfr-native gmp-native libmpc-native zlib-native" > > > >> > > > > > >> > > > > > >> > > note that we will need to ship zlib-nativesdk as well if we do this > > > >> > > so hopefully that case is covered by this. > > > >> > > > > >> > Yes, zlib has a BBCLASSEXTEND on zlib-nativesdk so this should be fine. > > > >> > > > >> OK and this is bundled with meta-toolchain too right ? > > > > > > > > By anything that depends on it by the shlibs code in the usual way, yes. > > > > > > But zlib is build time dependency, isn't it? > > > > yes it must be added to target gcc recipe > > > > > > > > Now it fails to build target gcc because it depends only on > > > zlib-native not target zlib and zlib.h is not found. > > > > whats the exact error? usually zlib is needed for gcj. are you building > > gcj ? > > I don't have that log anymore, but I'm building default gcc > configuration from oe-core/meta-oe (iirc without gcj) and IIRC it was > from lto (gcc/lto-compress.c:#include <zlib.h>). ah yes forgot lto :) and we do enable it so zlib dep is needed all the time. ^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2012-02-14 19:21 UTC | newest] Thread overview: 9+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-02-10 0:06 [PATCH] gcc-4.6: Some small performance tweaks Richard Purdie 2012-02-10 0:39 ` 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
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox