[oe-commits] Martin Jansa : sane-toolchain-eglibc: use -O2 for qt4-x11-free and libsyncml (needed for gcc-4.4)

git version control git at git.openembedded.org
Wed Feb 24 08:29:16 UTC 2010


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 4bfd40b10b1b24931c301738945dcba6f7b8e690
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=4bfd40b10b1b24931c301738945dcba6f7b8e690

Author: Martin Jansa <Martin.Jansa at gmail.com>
Date:   Tue Feb 23 10:22:25 2010 +0100

sane-toolchain-eglibc: use -O2 for qt4-x11-free and libsyncml (needed for gcc-4.4)

* I'll report gcc bug upstream as soon as I prepare simplier test-case

Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>

---

 conf/distro/include/sane-toolchain-eglibc.inc |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/conf/distro/include/sane-toolchain-eglibc.inc b/conf/distro/include/sane-toolchain-eglibc.inc
index 4c5f44f..1e370d0 100644
--- a/conf/distro/include/sane-toolchain-eglibc.inc
+++ b/conf/distro/include/sane-toolchain-eglibc.inc
@@ -7,6 +7,14 @@ FULL_OPTIMIZATION = "-fexpensive-optimizations -fomit-frame-pointer -frename-reg
 FULL_OPTIMIZATION_pn-perl = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O1"
 FULL_OPTIMIZATION_sparc = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2"
 
+# JaMa: I promise to report bug upstream, but as it can take a while to fix it, I'll switch to -O2 here
+# Tested with gcc-4.4.2 and gcc-4.4.3 on armv4t and armv5te and it fails with -Os, with gcc-4.3.3 it works OK with -Os
+# Here is testcase, but you have to rebuild whole libqtxml to test it
+# http://lists.shr-project.org/pipermail/shr-devel/2010-February/002169.html
+FULL_OPTIMIZATION_pn-qt4-x11-free = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2"
+# This I've seen only on armv4t, it segfaults when called from pisi, but whole test unit suite can pass
+FULL_OPTIMIZATION_pn-libsyncml = "-fexpensive-optimizations -fomit-frame-pointer -frename-registers -O2"
+
 BUILD_OPTIMIZATION_pn-perl = "-O1"
 BUILD_OPTIMIZATION_sparc = "-O2"
 





More information about the Openembedded-commits mailing list